Changeset - b789f53dc8f7
[Not reviewed]
mh - 3 years ago 2022-04-13 14:56:00
contact@maxhenger.nl
Actually fix string concatenation tests
2 files changed with 1 insertions and 19 deletions:
0 comments (0 inline, 0 general)
src/protocol/tests/eval_operators.rs
Show inline comments
 
@@ -221,23 +221,21 @@ func create_concatenated(string left, string right) -> string {
 
func perform_concatenate(string left, string right) -> string {
 
    left @= \", but also \";
 
    left @= right;
 
    return left;
 
}
 
func foo() -> bool {
 
    auto left = \"Darth Vader\";
 
    auto right = \"Anakin Skywalker\";
 
    auto res1 = create_concatenated(left, right);
 
    auto res2 = perform_concatenate(left, right);
 
    auto expected = \"Darth Vader, but also Anakin Skywalker\";
 

	
 
    print(res1);
 
    print(expected);
 
    return
 
        res1 == expected; // &&
 
        res1 == expected &&
 
        res2 == \"Darth Vader, but also Anakin Skywalker\" &&
 
        res1 != \"This kind of thing\" && res2 != \"Another likewise kind of thing\";
 
}
 
    ").for_function("foo", |f| { f
 
        .call_ok(Some(Value::Bool(true)));
 
    });
 
}
 
\ No newline at end of file
std/std.internet.pdl
Show inline comments
 
#module std.internet
 

	
 
union Cmd {
 
    Send(u8[]),
 
    Receive,
 
    Finish,
 
    Shutdown,
 
}
 

	
 
primitive tcp_client(u8[] ip, u16 port, in<Cmd> cmds, out<u8[]> rx) {
 
    #builtin
 
}
 

	
 
- Cleaned up stdlib
 
- Add option to bin compiler
 
- Allow for builtin procedures
 
- Move global functions to their own stdlib file
 
- Add bytestring (and tests for those bytestrings)
 
- Implement type inspector for rust-based components
 
- Modify scheme to facilitate position-independent symbol referencing (from token ranges to token markers)
 
- Fix (byte)string character escaping bug
 
- Fix (release-mode only) type inferencing bug
 
- Implement token-writer for debugging purposes
 
- Introduce `component` trait to facilitate builtin components
 
- Refactor common component code into various `component::default_handle_xxx` functions.
 
- Create TCP client component
 
- Add "epoll" polling thread to retrieve file descriptor events from unix OS.
 
- Implement type for runtime errors
 
\ No newline at end of file
0 comments (0 inline, 0 general)