test: Code view ui tests

This commit is contained in:
Eberhard Graether
2018-09-07 12:46:31 +02:00
parent 1a39f9ddc0
commit d2a99cbab2
17 changed files with 1119 additions and 0 deletions
@@ -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;
}