upd: update tests

This commit is contained in:
samsonium
2026-10-18 17:37:18 +03:00
parent d33aa57f8e
commit 0c8c206677
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -78,6 +78,10 @@ add_test(
NAME compile_borrow
COMMAND fzc -o "${CMAKE_CURRENT_BINARY_DIR}/borrow.fzb" "${CMAKE_CURRENT_SOURCE_DIR}/exl/borrow.fzs"
)
add_test(
NAME compile_hard_1
COMMAND fzc -o "${CMAKE_CURRENT_BINARY_DIR}/hard-1.fzb" "${CMAKE_CURRENT_SOURCE_DIR}/exl/hard-1.fzs"
)
set_tests_properties(compile_problematic_hw PROPERTIES WILL_FAIL TRUE)
@@ -125,4 +129,8 @@ add_test(
NAME runtime_borrow
COMMAND fz "${CMAKE_CURRENT_BINARY_DIR}/borrow.fzb"
)
add_test(
NAME runtime_hard_1
COMMAND fz "${CMAKE_CURRENT_BINARY_DIR}/hard-1.fzb"
)
+1 -1
View File
@@ -32,6 +32,6 @@ printline(a);
a = doSome(a);
printline(a);
b = doSomeNew();
A b = doSomeNew();
printline(b);
+1
View File
@@ -51,6 +51,7 @@ printline("Elements:");
list.printList();
printline("===== Test 2: mutation & methods =====");
list = list.append(10);
int total = list.sum();
printline("Sum of elements:");
printline(total);