1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-25 18:15:26 +01:00
dotSCAD/test/test_sub_str.scad

11 lines
249 B
OpenSCAD
Raw Normal View History

module test_sub_str() {
echo("==== test_sub_str ====");
2017-06-22 15:10:25 +08:00
include <unittest.scad>;
include <sub_str.scad>;
2017-06-22 14:42:56 +08:00
assertEqual("hello", sub_str("helloworld", 0, 5));
assertEqual("world", sub_str("helloworld", 5));
}
test_sub_str();