/* LICENSE BEGIN This file is part of the SixtyFPS Project -- https://sixtyfps.io Copyright (c) 2021 Olivier Goffart Copyright (c) 2021 Simon Hausmann SPDX-License-Identifier: GPL-3.0-only This file is also available under commercial licensing terms. Please contact info@sixtyfps.io for more information. LICENSE END */ TestCase := Rectangle { property test_sqrt: sqrt(100) == 10 && sqrt(1) == 1 && sqrt(6.25) == 2.5; property test_abs: abs(100.5) == 100.5 && abs(-200.5) == 200.5 && abs(0) == 0; property test: test_sqrt && test_abs; } /* ```cpp auto handle = TestCase::create(); const TestCase &instance = *handle; assert(instance.get_test()); ``` ```rust let instance = TestCase::new(); assert!(instance.get_test()); ``` ```js var instance = new sixtyfps.TestCase({}); assert(instance.test); ``` */