@@ -45,111 +45,112 @@ private int testFile(String fileName) throws UnsupportedEncodingException, IOExc
4545
4646 @ Test
4747 public void if_statement () throws UnsupportedEncodingException , IOException {
48- assertThat (testFile ("src/test/resources/visitors/if.cc" ) == 1 ).isTrue ();
48+
49+ assertThat (testFile ("src/test/resources/visitors/if.cc" )).isEqualTo (1 );
4950 }
5051
5152 @ Test
5253 public void if_else () throws UnsupportedEncodingException , IOException {
53- assertThat (testFile ("src/test/resources/visitors/if_else.cc" ) == 2 ). isTrue ( );
54+ assertThat (testFile ("src/test/resources/visitors/if_else.cc" )). isEqualTo ( 2 );
5455 }
5556
5657 @ Test
5758 public void if_else_if () throws UnsupportedEncodingException , IOException {
58- assertThat (testFile ("src/test/resources/visitors/if_else_if.cc" ) == 2 ). isTrue ( );
59+ assertThat (testFile ("src/test/resources/visitors/if_else_if.cc" )). isEqualTo ( 2 );
5960 }
6061
6162 @ Test
6263 public void if_else_if_else () throws UnsupportedEncodingException , IOException {
63- assertThat (testFile ("src/test/resources/visitors/if_else_if_else.cc" ) == 3 ). isTrue ( );
64+ assertThat (testFile ("src/test/resources/visitors/if_else_if_else.cc" )). isEqualTo ( 3 );
6465 }
6566
6667 @ Test
6768 public void ternary () throws UnsupportedEncodingException , IOException {
68- assertThat (testFile ("src/test/resources/visitors/ternary.cc" ) == 1 ). isTrue ( );
69+ assertThat (testFile ("src/test/resources/visitors/ternary.cc" )). isEqualTo ( 1 );
6970 }
7071
7172 @ Test
7273 public void nesting () throws UnsupportedEncodingException , IOException {
73- assertThat (testFile ("src/test/resources/visitors/nesting.cc" ) == 20 ). isTrue ( );
74+ assertThat (testFile ("src/test/resources/visitors/nesting.cc" )). isEqualTo ( 20 );
7475 }
7576
7677 @ Test
7778 public void switch_statement () throws UnsupportedEncodingException , IOException {
78- assertThat (testFile ("src/test/resources/visitors/switch.cc" ) == 1 ). isTrue ( );
79+ assertThat (testFile ("src/test/resources/visitors/switch.cc" )). isEqualTo ( 1 );
7980 }
8081
8182 @ Test
8283 public void for_statement () throws UnsupportedEncodingException , IOException {
83- assertThat (testFile ("src/test/resources/visitors/for.cc" ) == 1 ). isTrue ( );
84+ assertThat (testFile ("src/test/resources/visitors/for.cc" )). isEqualTo ( 1 );
8485 }
8586
8687 @ Test
8788 public void while_statement () throws UnsupportedEncodingException , IOException {
88- assertThat (testFile ("src/test/resources/visitors/while.cc" ) == 1 ). isTrue ( );
89+ assertThat (testFile ("src/test/resources/visitors/while.cc" )). isEqualTo ( 1 );
8990 }
9091
9192 @ Test
9293 public void do_while () throws UnsupportedEncodingException , IOException {
93- assertThat (testFile ("src/test/resources/visitors/do_while.cc" ) == 1 ). isTrue ( );
94+ assertThat (testFile ("src/test/resources/visitors/do_while.cc" )). isEqualTo ( 1 );
9495 }
9596
9697 @ Test
9798 public void catch_statement () throws UnsupportedEncodingException , IOException {
98- assertThat (testFile ("src/test/resources/visitors/catch.cc" ) == 1 ). isTrue ( );
99+ assertThat (testFile ("src/test/resources/visitors/catch.cc" )). isEqualTo ( 1 );
99100 }
100101
101102 @ Test
102103 public void multiple_catch () throws UnsupportedEncodingException , IOException {
103- assertThat (testFile ("src/test/resources/visitors/multiple_catch.cc" ) == 3 ). isTrue ( );
104+ assertThat (testFile ("src/test/resources/visitors/multiple_catch.cc" )). isEqualTo ( 3 );
104105 }
105106
106107 @ Test
107108 public void goto_statement () throws UnsupportedEncodingException , IOException {
108- assertThat (testFile ("src/test/resources/visitors/goto.cc" ) == 1 ). isTrue ( );
109+ assertThat (testFile ("src/test/resources/visitors/goto.cc" )). isEqualTo ( 1 );
109110 }
110111
111112 @ Test
112113 public void binary_logical () throws UnsupportedEncodingException , IOException {
113- assertThat (testFile ("src/test/resources/visitors/binary_logical.cc" ) == 2 ). isTrue ( );
114+ assertThat (testFile ("src/test/resources/visitors/binary_logical.cc" )). isEqualTo ( 2 );
114115 }
115116
116117 @ Test
117118 public void binary_logical_mixed () throws UnsupportedEncodingException , IOException {
118- assertThat (testFile ("src/test/resources/visitors/binary_logical_mixed.cc" ) == 4 ). isTrue ( );
119+ assertThat (testFile ("src/test/resources/visitors/binary_logical_mixed.cc" )). isEqualTo ( 4 );
119120 }
120121
121122 @ Test
122123 public void binary_logical_not () throws UnsupportedEncodingException , IOException {
123- assertThat (testFile ("src/test/resources/visitors/binary_logical_not.cc" ) == 3 ). isTrue ( );
124+ assertThat (testFile ("src/test/resources/visitors/binary_logical_not.cc" )). isEqualTo ( 3 );
124125 }
125126
126127 @ Test
127128 public void lambda () throws UnsupportedEncodingException , IOException {
128- assertThat (testFile ("src/test/resources/visitors/lambda.cc" ) == 2 ). isTrue ( );
129+ assertThat (testFile ("src/test/resources/visitors/lambda.cc" )). isEqualTo ( 2 );
129130 }
130131
131132 @ Test
132133 public void sum_of_primes () throws UnsupportedEncodingException , IOException {
133- assertThat (testFile ("src/test/resources/visitors/sum_of_primes.cc" ) == 7 ). isTrue ( );
134+ assertThat (testFile ("src/test/resources/visitors/sum_of_primes.cc" )). isEqualTo ( 7 );
134135 }
135136
136137 @ Test
137138 public void get_words () throws UnsupportedEncodingException , IOException {
138- assertThat (testFile ("src/test/resources/visitors/get_words.cc" ) == 1 ). isTrue ( );
139+ assertThat (testFile ("src/test/resources/visitors/get_words.cc" )). isEqualTo ( 1 );
139140 }
140141
141142 @ Test
142143 public void overridden_symbol_from () throws UnsupportedEncodingException , IOException {
143- assertThat (testFile ("src/test/resources/visitors/overridden_symbol_from.cc" ) == 19 ). isTrue ( );
144+ assertThat (testFile ("src/test/resources/visitors/overridden_symbol_from.cc" )). isEqualTo ( 19 );
144145 }
145146
146147 @ Test
147148 public void add_version () throws UnsupportedEncodingException , IOException {
148- assertThat (testFile ("src/test/resources/visitors/add_version.cc" ) == 35 ). isTrue ( );
149+ assertThat (testFile ("src/test/resources/visitors/add_version.cc" )). isEqualTo ( 35 );
149150 }
150151
151152 @ Test
152153 public void to_regexp () throws UnsupportedEncodingException , IOException {
153- assertThat (testFile ("src/test/resources/visitors/to_regexp.cc" ) == 20 ). isTrue ( );
154+ assertThat (testFile ("src/test/resources/visitors/to_regexp.cc" )). isEqualTo ( 20 );
154155 }
155156}
0 commit comments