Permalink
Browse files

Added int_arithmetic_errors test.

  • Loading branch information...
tzlaine committed Oct 30, 2011
1 parent 571c39a commit f141fd5626353f1365740c2bd35fcad257bb883d
Showing with 36 additions and 0 deletions.
  1. +1 −0 test/CMakeLists.txt
  2. +35 −0 test/int_arithmetic_errors
View
@@ -257,3 +257,4 @@ add_test_and_data_files(parser_test fleet_plans_parser -f fleet_plans)
add_test_and_data_files(parser_test fleet_plans_parser -f fleet_plans_permutations)
add_test_and_data_files(parser_test monster_fleet_plans_parser -f monster_fleet_plans)
add_test_and_data_files(parser_test monster_fleet_plans_parser -f monster_fleet_plans_permutations)
+add_test_and_data_files(parser_test int_value_ref_parser -f int_arithmetic_errors --fail)
View
@@ -0,0 +1,35 @@
+-
+(
+( 1
+( -
+( - 1
+( (
+( ( 1
+( ( 1 )
+( ( (
+( ( ( -
+( ( ( - 1
+( ( ( - 1 )
+( ( ( - 1 ) )
+( ( ( (
+( ( ( ( -
+( ( ( ( - 1
+( ( ( ( - 1 )
+( ( ( ( - 1 ) )
+( ( ( ( - 1 ) ) )
+1 +
+- 1 +
+- 1 + 2 -
+- 1 + 2 - 3 +
+1 *
+1 * 1 +
+- 1 + 2 *
+- 1 *
+- 1 * 3 +
+- 1 * 3 + 2 *
+1 * 1 + 2 +
+- 1 + 2 * 2 +
+- 1 * 3 + 2 * 4 +
+1 * 1 + 2 *
+- 1 + 2 * 2 *
+- 1 * 3 + 2 * 4 *

0 comments on commit f141fd5

Please sign in to comment.