mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: Add regression tests for concatenation.
This commit is contained in:
parent
a1bfba65b7
commit
aa88f5a196
2
integration_tests/concatenation_test.ucg
Normal file
2
integration_tests/concatenation_test.ucg
Normal file
@ -0,0 +1,2 @@
|
||||
assert |"hello " + "world" == "hello world"|;
|
||||
assert |[1, 2, 3] + [4, 5, 6] == [1, 2, 3, 4, 5, 6]|;
|
@ -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"
|
||||
));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user