diff --git a/integration_tests/concatenation_test.ucg b/integration_tests/concatenation_test.ucg new file mode 100644 index 0000000..2bbc58c --- /dev/null +++ b/integration_tests/concatenation_test.ucg @@ -0,0 +1,2 @@ +assert |"hello " + "world" == "hello world"|; +assert |[1, 2, 3] + [4, 5, 6] == [1, 2, 3, 4, 5, 6]|; \ No newline at end of file diff --git a/src/build/compile_test.rs b/src/build/compile_test.rs index 09fa7c3..f893ac1 100644 --- a/src/build/compile_test.rs +++ b/src/build/compile_test.rs @@ -66,3 +66,10 @@ fn test_binary_operator_precedence() { fn test_list_operations() { assert_build(include_str!("../../integration_tests/list_ops_test.ucg")); } + +#[test] +fn test_concatenation() { + assert_build(include_str!( + "../../integration_tests/concatenation_test.ucg" + )); +}