ligo/src/test/contracts/string_arithmetic.mligo

11 lines
231 B
Plaintext
Raw Normal View History

(* Test that the string concatenation syntax in CameLIGO works *)
2019-10-26 03:33:31 +04:00
let size_op (s : string) : nat =
String.size s
let slice_op (s : string) : string =
String.slice 1p 2p s
let concat_syntax (s: string) =
s ^ "test_literal"