use crate::oracle_tests;
use crate::tests_common::test_ast_format;
oracle_tests! {
test_ast_format;
test_integer => ["42"],
test_simple_string => ["\"hello\""],
test_indented_string => ["''hello''"],
test_relative_path => ["./foo/bar"],
test_simple_list => ["[1 2 3]"],
test_simple_set => ["{a=1;}"],
test_dotted_path => ["{a.b.c=1;}"],
test_inherit => ["{inherit a;}"],
test_selection_with_default => ["x.y or 42"],
test_parenthesized => ["(1 + 2)"],
test_with => ["with x; y"],
test_let_simple => ["let a=1; in a"],
test_assert => ["assert true; 42"],
test_if_then_else => ["if true then 1 else 2"],
test_simple_lambda => ["x: x"],
test_set_pattern => ["{x}: x"],
test_function_application => ["f x"],
test_addition => ["1 + 2"],
test_comparison_operators => ["a <= b && c >= d"],
test_member_check => ["x ? y"],
test_negation => ["-5"],
test_boolean_not => ["!true"],
test_line_comment => ["# comment\n42"],
test_block_comment => ["/* block */ 42"],
test_string_hash_not_comment => [
r"''
foo ${bar}
# TODO: comment
badFiles=$(find ${filteredHead})
''",
],
}