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:
parent
a9fb7525b6
commit
2d7c303472
@ -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
6
test/test_sub_str.scad
Normal 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));
|
Loading…
x
Reference in New Issue
Block a user