Grapheme indexing doesn't work and also is slow
Closed this issue · 0 comments
hawkw commented
Just leaving this here so I can remember the test results when I come back to it tomorrow. Nothing to see here, folks.
failures:
---- test::delete_test_1 stdout ----
thread 'test::delete_test_1' panicked at 'assertion failed: `(left == right)` (left: `Rope["this is nne"] Branch(9(Leaf("this is n"), Leaf("ne")))`, right: `"this is fine"`)', src/test/mod.rs:23
note: Run with `RUST_BACKTRACE=1` for a backtrace.
---- test::mutable_insert_char_test_2 stdout ----
thread 'test::mutable_insert_char_test_2' panicked at 'assertion failed: `(left == right)` (left: `Rope["aaaaabb"] Branch(5(Branch(5(Leaf("aaaaa"), Leaf("b"))), Leaf("b")))`, right: `"aaaabab"`)', src/test/mod.rs:323
---- test::properties::rope_indexing_is_string_indexing stdout ----
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `@0U~%0ᒣ0t‹&¢z¥枼‰\4>=)?n¨c綣;%*6x(w$JP⁃ᑡK¤@
ꦻ켣쉑D7^m!�~@[¦Mªw` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `ꦻ켣쉑w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `켣쉑w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `쉑w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `𰅡𰅡w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `𘂱w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `쁙w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `怭w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `〗w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `ఆw` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `अw` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `ɂw` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `ġw` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `w` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 4 and/or 5 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 3 and/or 4 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 3 and/or 4 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 2 and/or 3 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 2 and/or 3 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 1 and/or 2 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at 'index 1 and/or 2 in `` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_indexing_is_string_indexing' panicked at '[quickcheck] TEST FAILED (runtime error). Arguments: ("\u{80}\u{0}", 1)
Error: "index 1 and/or 2 in `\u{80}\u{0}` do not lie on character boundary"', /Users/eliza/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.3.2/src/tester.rs:118
---- test::properties::rope_insert_char_is_string_insert_char stdout ----
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'index 0 and/or 5 in `{$.L>䢰'?Ꮃ†%5*` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'assertion failed: self.is_char_boundary(idx)', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcollections/string.rs:1128
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'index 0 and/or 5 in `†%5*` do not lie on character boundary', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/str/mod.rs:1754
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at 'invalid index!', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:715
thread 'test::properties::rope_insert_char_is_string_insert_char' panicked at '[quickcheck] TEST FAILED (runtime error). Arguments: ("\u{80}", '\u{0}', 1)
Error: "invalid index!"', /Users/eliza/.cargo/registry/src/github.com-1ecc6299db9ec823/quickcheck-0.3.2/src/tester.rs:118
---- test::with_insert_char_test_1 stdout ----
thread 'test::with_insert_char_test_1' panicked at 'assertion failed: `(left == right)` (left: `Rope["aaaaabb"] Branch(5(Branch(5(Leaf("aaaaa"), Leaf("b"))), Leaf("b")))`, right: `"aaaabab"`)', src/test/mod.rs:343
---- test::with_insert_str_test_1 stdout ----
thread 'test::with_insert_str_test_1' panicked at 'assertion failed: `(left == right)` (left: `Rope["aaaaacbbbbbcccc"] Branch(6(Branch(5(Branch(5(Leaf("aaaaa"), Leaf("c"))), Leaf("bbbbb"))), Leaf("cccc")))`, right: `"aaaaabbbbbccccc"`)', src/test/mod.rs:357
failures:
test::delete_test_1
test::mutable_insert_char_test_2
test::properties::rope_indexing_is_string_indexing
test::properties::rope_insert_char_is_string_insert_char
test::with_insert_char_test_1
test::with_insert_str_test_1
test result: FAILED. 61 passed; 6 failed; 0 ignored; 0 measured
error: test failed