mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-03 03:15:37 +02:00
Rename close_path and cleanup_path to list_wrap and list_unwrap
This commit is contained in:
@@ -81,6 +81,26 @@ test_unique_count();
|
||||
|
||||
|
||||
|
||||
|
||||
module test_list_wrap() {
|
||||
assert(list_wrap([[1,2,3],[4,5,6],[1,8,9]]) == [[1,2,3],[4,5,6],[1,8,9],[1,2,3]]);
|
||||
assert(list_wrap([[1,2,3],[4,5,6],[1,8,9],[1,2,3]]) == [[1,2,3],[4,5,6],[1,8,9],[1,2,3]]);
|
||||
assert(list_wrap([])==[]);
|
||||
assert(list_wrap([3])==[3]);
|
||||
}
|
||||
test_list_wrap();
|
||||
|
||||
|
||||
module test_list_unwrap() {
|
||||
assert(list_unwrap([[1,2,3],[4,5,6],[1,8,9]]) == [[1,2,3],[4,5,6],[1,8,9]]);
|
||||
assert(list_unwrap([[1,2,3],[4,5,6],[1,8,9],[1,2,3]]) == [[1,2,3],[4,5,6],[1,8,9]]);
|
||||
assert(list_unwrap([])==[]);
|
||||
assert(list_unwrap([3])==[3]);
|
||||
}
|
||||
test_list_unwrap();
|
||||
|
||||
|
||||
|
||||
module test_is_increasing() {
|
||||
assert(is_increasing([1,2,3,4]) == true);
|
||||
assert(is_increasing([1,2,2,2]) == true);
|
||||
|
Reference in New Issue
Block a user