☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
general
/
string_length.mzn
☽
☼
tests/spec/unit/general/string_length.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
solvers: [gecode]
4
expected: !Result
5
status: SATISFIED
6
***/
7
8
constraint assert(string_length("a b\t") = 4, "Incorrect");
9
% 4 bytes, but one code point
10
constraint assert(string_length("😀") = 1, "Incorrect");