From 958577cac90a99124cd673fde1926781d966d91f Mon Sep 17 00:00:00 2001 From: Ankit Raj Date: Wed, 21 Jun 2017 10:26:59 +0530 Subject: Updated Scilab2C --- tests/unit_tests/double/test_round.sci | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/unit_tests/double/test_round.sci (limited to 'tests/unit_tests/double/test_round.sci') diff --git a/tests/unit_tests/double/test_round.sci b/tests/unit_tests/double/test_round.sci new file mode 100644 index 0000000..90e8cf7 --- /dev/null +++ b/tests/unit_tests/double/test_round.sci @@ -0,0 +1,11 @@ +function test_round() + d0 = %pi + d2 = [1 2 3 4 ; 4 5 6 8 ; 9 10 11 12 ; 13 14 15 16] + z0 = d0 + %i * d0 + z2 = d2 + %i * d2 + + round(d0); + round(d2); + round(z0); + round(z2); +endfunction \ No newline at end of file -- cgit