MAINT: Add regression tests for concatenation.

This commit is contained in:
Jeremy Wall 2018-08-24 19:18:12 -05:00
parent a1bfba65b7
commit aa88f5a196
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
assert |"hello " + "world" == "hello world"|;
assert |[1, 2, 3] + [4, 5, 6] == [1, 2, 3, 4, 5, 6]|;

View File

@ -66,3 +66,10 @@ fn test_binary_operator_precedence() {
fn test_list_operations() { fn test_list_operations() {
assert_build(include_str!("../../integration_tests/list_ops_test.ucg")); assert_build(include_str!("../../integration_tests/list_ops_test.ucg"));
} }
#[test]
fn test_concatenation() {
assert_build(include_str!(
"../../integration_tests/concatenation_test.ucg"
));
}