1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00

added test_sub_str

This commit is contained in:
Justin Lin 2017-06-22 14:42:56 +08:00
parent a9fb7525b6
commit 2d7c303472
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ include <test_bend.scad>;
// Function
include <test_rotate_p.scad>;
include <test_paths2sections.scad>;
include <test_sub_str.scad>;
// 2D Shape
include <test_shape_arc.scad>;

6
test/test_sub_str.scad Normal file
View File

@ -0,0 +1,6 @@
include <unittest.scad>;
include <sub_str.scad>;
assertEqual("hello", sub_str("helloworld", 0, 5));
assertEqual("world", sub_str("helloworld", 5));