a_star: don't crash on deserialization errors and limit static types
[nit.git] / tests / test_text.nit
index 3e7da27..2d636fb 100644 (file)
@@ -12,8 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-#alt2 import standard
-#alt2 import buffered_ropes
+#alt2 import core
 
 var str = "Woe to you, oh earth and sea for the Devil sends the beast with wrath because he knows the time is short. Let him who hath understanding reckon the number of the beast, for it is a human number, its number is Six Hundred and Sixty-Six."
 var spaces = "           "
@@ -33,12 +32,6 @@ num = numstr
 #alt1 trimable.append(spaces)
 #alt1 num = new FlatBuffer.from(numstr)
 
-#alt3 txt = new RopeBuffer.from(str)
-#alt3 trimable = new RopeBuffer.from(spaces)
-#alt3 trimable.append(str)
-#alt3 trimable.append(spaces)
-#alt3 num = new RopeBuffer.from(numstr)
-
 # Test Text methods on all types of receivers
 
 print txt.substring(0, 105)