test: Code view ui tests
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
// TEST: snippets expanded by default - continued
|
||||
// START ----------------------------------------------------------------------
|
||||
|
||||
// RESULTS:
|
||||
// - There are 4 snippets
|
||||
// - The first 3 are expanded
|
||||
// - The first one shows this whole file
|
||||
|
||||
// END ------------------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef __HEADER__
|
||||
#define __HEADER__
|
||||
|
||||
int sum(int a, int b)
|
||||
{
|
||||
return a + b;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int multiply(int a, int b)
|
||||
{
|
||||
int r = 0;
|
||||
for (int i = 1; i < b; i++)
|
||||
{
|
||||
r = sum(r, a);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int divide(int a, int b)
|
||||
{
|
||||
int c = 0;
|
||||
int r = 0;
|
||||
while (r < a)
|
||||
{
|
||||
r = sum(r, b);
|
||||
c++;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
Reference in New Issue
Block a user