diff options
| author | shedaniel <daniel@shedaniel.me> | 2023-05-29 23:17:20 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2023-05-29 23:17:20 +0800 |
| commit | 1e869aeac83d1627a6cae32a3b53b7d17bd3d7b8 (patch) | |
| tree | 9ff780b6f52c8a6c216698242e8604568dc1df92 /runtime/src/test | |
| parent | 48ed02b1ed057d2b7502cca575f640a595959cf5 (diff) | |
| download | RoughlyEnoughItems-feature/6.7.tar.gz RoughlyEnoughItems-feature/6.7.tar.bz2 RoughlyEnoughItems-feature/6.7.zip | |
Fix compile errorsfeature/6.7
Diffstat (limited to 'runtime/src/test')
| -rw-r--r-- | runtime/src/test/java/InputMethodTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/test/java/InputMethodTest.java b/runtime/src/test/java/InputMethodTest.java index 7226603bc..c70082816 100644 --- a/runtime/src/test/java/InputMethodTest.java +++ b/runtime/src/test/java/InputMethodTest.java @@ -21,6 +21,7 @@ * SOFTWARE. */ +import it.unimi.dsi.fastutil.ints.IntArrayList; import it.unimi.dsi.fastutil.ints.IntList; import me.shedaniel.rei.impl.Internals; import me.shedaniel.rei.impl.client.search.argument.InputMethodMatcher; @@ -94,6 +95,6 @@ public class InputMethodTest { } boolean pinyinContains(String input, String substr) { - return InputMethodMatcher.contains(pinyinInputMethod, IntList.of(input.codePoints().toArray()), IntList.of(substr.codePoints().toArray())); + return InputMethodMatcher.contains(pinyinInputMethod, new IntArrayList(input.codePoints().toArray()), new IntArrayList(substr.codePoints().toArray())); } } |
