From a8a49e5b1f968d4ae160052a35242efc7ea30e30 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Sun, 23 Dec 2018 17:10:36 +0100 Subject: Update tests --- tests/pracownia4/pracownia3/001_or_01.xi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/pracownia4/pracownia3/001_or_01.xi (limited to 'tests/pracownia4/pracownia3/001_or_01.xi') diff --git a/tests/pracownia4/pracownia3/001_or_01.xi b/tests/pracownia4/pracownia3/001_or_01.xi new file mode 100644 index 0000000..42e3715 --- /dev/null +++ b/tests/pracownia4/pracownia3/001_or_01.xi @@ -0,0 +1,30 @@ +printString(str:int[]) + +pred_lhs():bool +{ + printString("pred_lhs") + return false +} + +pred_rhs():bool +{ + printString("pred_rhs") + return true +} + +main():int +{ + result:int = 3 + if pred_lhs() | pred_rhs() { + result = 1 + } else { + result = 0 + } + + return result +} + +//@PRACOWNIA +//@out pred_lhs +//@out pred_rhs +//@out Exit code: 1 -- cgit 1.4.1