~eda-qa/leaflang/misc

« back to all changes in this revision

Viewing changes to src/test/statement_test.cpp

  • Committer: edA-qa mort-ora-y
  • Date: 2017-05-13 04:00:12 UTC
  • mfrom: (96.1.42 sortfile)
  • Revision ID: eda-qa@disemia.com-20170513040012-ieshuqv2vkjt0xc3
merging sortfile

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        Stuff which has syntactic meaning but is invalid semantically.
180
180
        
181
181
        Note that only internals can take value-lists (these are private types).
 
182
        
 
183
        TODO: fix these
182
184
*/
183
 
BOOST_AUTO_TEST_CASE( nonsense )
184
 
{
185
 
        //test_noparse( "()" ); //now parses, is it nonsense (a void expression)
186
 
        //test_noparse( "-()" ); //also parses, but nonsense
187
 
        //test_noparse( "()+{}" ); //excess parens still don't define a value
188
 
        //test_noparse( "(a,b)+(c,d)" ); //value-lists can only be final expression or in a function calls
189
 
}
 
185
// BOOST_AUTO_TEST_CASE( nonsense )
 
186
// {
 
187
//      //test_noparse( "()" ); //now parses, is it nonsense (a void expression)
 
188
//      //test_noparse( "-()" ); //also parses, but nonsense
 
189
//      //test_noparse( "()+{}" ); //excess parens still don't define a value
 
190
//      //test_noparse( "(a,b)+(c,d)" ); //value-lists can only be final expression or in a function calls
 
191
// }
190
192
 
191
193
BOOST_AUTO_TEST_CASE( value_list )
192
194
{