1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
4TestCase := Rectangle {
5 property <TextWrap> hello: word-wrap;
6 property <bool> test: hello == TextWrap.word-wrap && hello != TextWrap.no-wrap && !(hello == TextWrap.no-wrap);
7}
8
9/*
10```cpp
11auto handle = TestCase::create();
12const TestCase &instance = *handle;
13assert(instance.get_test());
14```
15
16```rust
17let instance = TestCase::new().unwrap();
18assert!(instance.get_test());
19```
20
21```js
22var instance = new slint.TestCase({});
23assert(instance.test);
24```
25*/
26