aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/array.unit12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unit/array.unit b/src/unit/array.unit
index e9f2bdf..e2c08eb 100644
--- a/src/unit/array.unit
+++ b/src/unit/array.unit
@@ -109,4 +109,16 @@ suite Array
109 aStr[1] = "Hello"; 109 aStr[1] = "Hello";
110 aStr[0] = aStr[1].clone(); 110 aStr[0] = aStr[1].clone();
111 } 111 }
112
113 test swap
114 {
115 Bu::Array<Bu::String> aStr( 3 );
116 aStr.append("One");
117 aStr.append("Three");
118 aStr.append("Two");
119
120 aStr.swap( 1, 2 );
121 unitTest( aStr[1] == "Two" );
122 unitTest( aStr[2] == "Three");
123 }
112} 124}