mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
added test_sub_str
This commit is contained in:
@@ -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));
|
Reference in New Issue
Block a user