Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
269,900
void (Module module) { ModifiableModuleModel model = myModuleManager.getModifiableModel(); try { model.renameModule(module, RENAMED_MODULE_NAME); } catch (ModuleWithNameAlreadyExists e) { throw new IllegalStateException(e); } ApplicationManager.getApplication().runWriteAction(() -> model.commit()); module.getModuleFile...
renameModule
269,901
void () { assertStressTestDetected(true); }
testStrsFlagSetCorrectly
269,902
void () { assertStressTestDetected(true); }
testPerfFlagSetCorrectly
269,903
void () { assertStressTestDetected(true); }
testSloFlagSetCorrectly
269,904
void () { assertStressTestDetected(true); }
testAppFlagsSetCorrectly
269,905
void () { assertStressTestDetected(true); }
testStressFlagSetCorrectly
269,906
void () { assertStressTestDetected(true); }
testPerformanceFlagSetCorrectly
269,907
void () { assertStressTestDetected(true); }
testSlowFlagSetCorrectly
269,908
void () { assertStressTestDetected(false); }
testAppFlagsSetCorrectly
269,909
void () { assertStressTestDetected(true); }
testStrssFlagSetCorrectly
269,910
void () { assertStressTestDetected(true); }
testPerfFlagSetCorrectly
269,911
void () { assertStressTestDetected(true); }
testSloFlagSetCorrectly
269,912
void () { assertStressTestDetected(true); }
testAppFlagsSetCorrectly
269,913
void () { assertStressTestDetected(true); }
testStressFlagSetCorrectly
269,914
void () { assertStressTestDetected(true); }
testPerformanceFlagSetCorrectly
269,915
void () { assertStressTestDetected(true); }
testSlowFlagSetCorrectly
269,916
void () { assertStressTestDetected(false); }
testAppFlagsSetCorrectly
269,917
void () { myMap = new ReplacePathToMacroMap(); myMap.addMacroReplacement("/tmp/foo", "MODULE_DIR"); }
setupMap
269,918
void () { assertEquals("/foo/bar", substitute("/foo/bar")); }
testSubstitute_NoSubstitute
269,919
void () { assertEquals("$MODULE_DIR$", substitute("/tmp/foo")); assertEquals("jar:$MODULE_DIR$", substitute("jar:/tmp/foo")); assertEquals("jar:/$MODULE_DIR$", substitute("jar://tmp/foo")); assertEquals("jar://$MODULE_DIR$", substitute("jar:///tmp/foo")); assertEquals("file:$MODULE_DIR$", substitute("file:/tmp/foo")); ...
testSubstitute_CompleteMatch
269,920
void () { assertEquals("$MODULE_DIR$/bar", substitute("/tmp/foo/bar")); assertEquals("jar:$MODULE_DIR$/bar", substitute("jar:/tmp/foo/bar")); assertEquals("jar:/$MODULE_DIR$/bar", substitute("jar://tmp/foo/bar")); assertEquals("jar://$MODULE_DIR$/bar", substitute("jar:///tmp/foo/bar")); assertEquals("file:$MODULE_DIR$/...
testSubstitute_PrefixMatch
269,921
void () { assertEquals("$MODULE_DIR$!/bar", substitute("/tmp/foo!/bar")); assertEquals("jar:$MODULE_DIR$!/bar", substitute("jar:/tmp/foo!/bar")); assertEquals("jar:/$MODULE_DIR$!/bar", substitute("jar://tmp/foo!/bar")); assertEquals("jar://$MODULE_DIR$!/bar", substitute("jar:///tmp/foo!/bar")); assertEquals("file:$MODU...
testSubstitute_JarPrefixMatch
269,922
void () { myMap.put("C:/", "../$MODULE_DIR$/"); assertEquals("../$MODULE_DIR$/", substitute("C:/")); assertEquals("../$MODULE_DIR$/foo", substitute("C:/foo")); }
testSubstitute_WindowsRootSubstitution
269,923
void () { assertEquals("/bar/tmp/foo/bar", substitute("/bar/tmp/foo/bar")); }
testSubstitute_NoSubstituteInTheMiddleOccurs
269,924
void () { assertEquals("$MODULE_DIR$/bar/tmp/foo", substitute("/tmp/foo/bar/tmp/foo")); }
testSubstitute_NoDoubleSubstitution
269,925
void () { assertEquals("/tmp/foobar", substitute("/tmp/foobar")); }
testSubstitute_NoPartialSubstituteIsPerformed
269,926
void () { myMap.put("/root/project/module", "$MODULE_DIR$"); myMap.put("/root/project", "../$MODULE_DIR$"); myMap.put("/root", "$APPLICATION_HOME_DIR$"); assertEquals("$MODULE_DIR$", substitute("/root/project/module")); assertEquals("../$MODULE_DIR$", substitute("/root/project")); assertEquals("$APPLICATION_HOME_DIR$/a...
testSubstitute_ProperSubstitutionPriorityApplied
269,927
void () { assertEquals("unknown:/tmp/foo", substitute("unknown:/tmp/foo")); // not substituted assertEquals("-Dprop=unknown:$MODULE_DIR$", myMap.substituteRecursively("-Dprop=unknown:/tmp/foo", true).toString()); // substituted }
testUnknownProtocol
269,928
String (@NotNull String s) { return myMap.substitute(s, true); }
substitute
269,929
void (final Project project, final Runnable action) { ApplicationManager.getApplication().runWriteAction(() -> CommandProcessor.getInstance().executeCommand(project, action, "test command", null)); }
performAction
269,930
void () { doTest("\"", "aaa\nbbb\n\n", "\"aaa\nbbb\n\n"); }
testWOSelection
269,931
void () { doTest("\"", "<selection><caret>aaa\n</selection>bbb\n\n", "\"aaa\n\"bbb\n\n"); }
testWithSelection
269,932
void () { doTest("\"", "<selection><caret>a</selection>aa\nbbb\n\n", "\"a\"aa\nbbb\n\n"); }
testWithSingleCharSelection
269,933
void () { doTest("`", "<selection><caret>a</selection>aa\nbbb\n\n", "`a`aa\nbbb\n\n"); }
testWithBacktick
269,934
void () { doTest("'", "<selection><caret>\"aaa\"</selection>\nbbb\n\n", "'aaa'\nbbb\n\n"); }
testChangeQuotes
269,935
void () { doTest("[", "<selection><caret>(aaa)</selection>\nbbb\n\n", "[aaa]\nbbb\n\n"); }
testChangeBrackets
269,936
void () { doTest("(", "aaa<selection>[foo][bar]<caret></selection>bbb", "aaa([foo][bar])bbb"); }
testDontChangeBrackets
269,937
void () { doTest("[", "<selection><caret>[aaa]</selection>\nbbb\n\n", "[[aaa]]\nbbb\n\n"); }
testDoubleBrackets
269,938
void () { doTest("[", "<selection><caret>\"aaa\"</selection>\nbbb\n\n", "[\"aaa\"]\nbbb\n\n"); }
testChangeNonSimilar
269,939
void () { doTest("'a", "<selection><caret>\"b\"</selection>\nbbb\n\n", "'a<caret>'\nbbb\n\n"); }
testReplaceBracketAndText
269,940
void () { doTest("\"\"\"", "<selection>text<caret></selection>\nbbb\n\n", "\"\"\"<selection>text</selection>\"\"\"\nbbb\n\n"); }
testTripleEnquote
269,941
void () { doTest("\"", "aa<caret>a <selection><caret>bbb</selection> c<selection>c<caret>c</selection>", "aa\"<caret>a \"<selection><caret>bbb</selection>\" c\"<selection>cc<caret></selection>\""); }
testMultipleCarets
269,942
void (@NotNull String before, @NotNull String expected) { String typeChar = before.charAt(0) == '"' ? "'" : "\""; StringBuilder selectFirst = new StringBuilder(before).insert(1, "</selection>").insert(0, "<selection><caret>"); StringBuilder expectedFirst = new StringBuilder(expected).insert(1, "<caret>"); doTest(typeCh...
doUpdateQuoteTest
269,943
void () { doUpdateQuoteTest("''", "\"\""); doUpdateQuoteTest("'aa'", "\"aa\""); }
testUpdatePairQuote
269,944
void () { doUpdateQuoteTest("'aa\\'bb'", "\"aa'bb\""); doUpdateQuoteTest("'AA\\'\\'BB\\\\\\'CC\\nDD\"\"EE\\\"FF'", "\"AA''BB\\\\'CC\\nDD\\\"\\\"EE\\\"FF\""); doUpdateQuoteTest("\"AA\\\"BB'CC\\'DD\"", "'AA\"BB\\'CC\\'DD'"); }
testUpdatePairQuoteFixEscaping
269,945
void () { doTest("<", "a <selection><caret>></selection>= b", "a <<caret>= b"); }
testMathExpression
269,946
void () { doTest("<", "a <selection><caret>>=</selection> b", "a <<caret> b"); }
testMathExpression2
269,947
void (@NotNull final String cs, @NotNull String before, @NotNull String expected) { myFixture.configureByText(FileTypes.PLAIN_TEXT, before); EditorActionManager.getInstance(); final TypedAction typedAction = TypedAction.getInstance(); performAction(myFixture.getProject(), () -> { for (int i = 0, max = cs.length(); i < ...
doTest
269,948
void () { myFixture.configureByText(FileTypes.PLAIN_TEXT, "\"aaa\"\nbbb\n\n"); myFixture.getEditor().getCaretModel().moveToOffset(0); myFixture.getEditor().getSelectionModel().setSelection(0, 5); EditorActionManager.getInstance(); final TypedAction typedAction = TypedAction.getInstance(); performAction(myFixture.getPro...
testRuby7852ErrantEditor
269,949
void () { final ElementPattern pattern = string(); assertFalse(string().accepts(new Object())); assertTrue(pattern.accepts("")); }
testString
269,950
void () { final ElementPattern pattern = string().startsWith("abc"); assertFalse(pattern.accepts("")); assertTrue(pattern.accepts("abcd")); assertTrue(pattern.accepts("abc")); assertFalse(string().startsWith("abc").accepts(new Object())); }
testStartsWith
269,951
void () { final ElementPattern pattern = string().endsWith("abc"); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("abcd")); assertTrue(pattern.accepts("abc")); }
testEndsWith
269,952
void () { final ElementPattern pattern = string().longerThan(2); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("01")); assertTrue(pattern.accepts("012")); }
testLongerThan
269,953
void () { final ElementPattern pattern = string().shorterThan(2); assertTrue(pattern.accepts("")); assertTrue(pattern.accepts("1")); assertFalse(pattern.accepts("12")); }
testShorterThan
269,954
void () { final ElementPattern pattern = string().withLength(2); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("1")); assertTrue(pattern.accepts("12")); }
testWithLength
269,955
void () { final ElementPattern pattern = string().contains("abc"); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("acb")); assertFalse(pattern.accepts("ABC")); assertTrue(pattern.accepts("01abcd")); }
testContains
269,956
void () { final ElementPattern pattern = string().containsChars("abc"); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("ABC")); assertTrue(pattern.accepts("01a")); assertTrue(pattern.accepts("01c")); assertTrue(pattern.accepts("01b")); }
testContainsChars
269,957
void () { final ElementPattern pattern = string().oneOfIgnoreCase("a", "B"); assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("ab")); assertFalse(pattern.accepts("d01x")); assertTrue(pattern.accepts("A")); assertTrue(pattern.accepts("b")); }
testOneOfIgnoreCase
269,958
void () { VirtualFile file = myFixture.addFileToProject("foo/bar.txt", "").getVirtualFile(); assert PlatformPatterns.virtualFile().withSuperParent(1, PlatformPatterns.virtualFile().withName("foo")).accepts(file); assert !PlatformPatterns.virtualFile().withSuperParent(1, PlatformPatterns.virtualFile().withName("bar")).a...
testWithSuperParent
269,959
void () { assertTrue(object().isNull().accepts(null)); assertFalse(object().isNull().accepts("")); assertFalse(string().isNull().accepts("")); assertTrue(string().isNull().accepts(null)); }
testNull
269,960
void (final ElementPattern pattern) { assertFalse(pattern.accepts("")); assertFalse(pattern.accepts("abcd")); assertTrue(pattern.accepts("abc")); assertTrue(pattern.accepts("abcdabc")); assertFalse(pattern.accepts("abcdab")); }
checkPrefixSuffix
269,961
void () { checkPrefixSuffix(string().endsWith("abc").startsWith("abc")); }
testPrefixSuffix
269,962
void () { checkPrefixSuffix(and(string().endsWith("abc"), string().startsWith("abc"))); }
testAnd1
269,963
void () { checkPrefixSuffix(string().endsWith("abc").and(string().startsWith("abc"))); }
testAnd2
269,964
void () { checkOr(or(string().endsWith("abc"), string().startsWith("abc"))); }
testOr1
269,965
void () { final ElementPattern pattern = not(or(string().endsWith("abc"), string().startsWith("abc"))); assertTrue(pattern.accepts("")); assertTrue(pattern.accepts("xxx")); assertFalse(pattern.accepts("abcd")); assertTrue(pattern.accepts("dabcd")); assertFalse(pattern.accepts("abc")); assertFalse(pattern.accepts("abcda...
testNot1
269,966
void (final ElementPattern filterFactory) { assertFalse(filterFactory.accepts("")); assertFalse(filterFactory.accepts("xxx")); assertTrue(filterFactory.accepts("abcd")); assertFalse(filterFactory.accepts("dabcd")); assertTrue(filterFactory.accepts("abc")); assertTrue(filterFactory.accepts("abcdabc")); assertTrue(filter...
checkOr
269,967
void () { final Object foo = new Object(); final Object bar = new Object(); ElementPattern objectPattern = object().equalTo(foo); assertTrue(objectPattern.accepts(foo)); assertFalse(objectPattern.accepts(bar)); ElementPattern stringPattern = string().equalTo("foo"); assertTrue(stringPattern.accepts("foo")); assertFalse...
testEquals
269,968
void () { ElementPattern pattern = collection(String.class).all(string().startsWith("abc")); assertTrue(pattern.accepts(Arrays.asList("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc", "abcd"))); assertFalse(pattern.accepts(Arrays.asList("abc", "bcd"))); }
testAll
269,969
void () { ElementPattern pattern = collection(String.class).atLeastOne(string().startsWith("abc")); assertTrue(pattern.accepts(Arrays.asList("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc", "abcd"))); assertTrue(pattern.accepts(Arrays.asList("abc", "bcd"))); assertFalse(pattern.accepts(Arrays.asList("bc", "bcd...
testAtLeastOne
269,970
void () { ElementPattern pattern = collection(String.class).filter(string().endsWith("x"), collection(String.class).all(string().startsWith("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc", "abcd"))); assertFalse(pattern.accepts(Arrays.asList("bcx", "bcd"))); a...
testFilter
269,971
void () { ElementPattern pattern = collection(String.class).first(string().startsWith("abc")); assertFalse(pattern.accepts(Arrays.<String>asList())); assertTrue(pattern.accepts(Arrays.asList("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc", "abcd"))); assertTrue(pattern.accepts(Arrays.asList("abc", "bcd"))); as...
testFirst
269,972
void () { //collection(String.class) ElementPattern pattern = collection(String.class).last(string().startsWith("abc")); assertFalse(pattern.accepts(Arrays.<String>asList())); assertTrue(pattern.accepts(Arrays.asList("abc"))); assertTrue(pattern.accepts(Arrays.asList("abc", "abcd"))); assertFalse(pattern.accepts(Arrays...
testLast
269,973
void () { final CollectionPattern<String> filter = collection(String.class); assertTrue(filter.size(0).accepts(Arrays.<String>asList())); assertFalse(filter.size(0).accepts(Arrays.asList("abc"))); assertFalse(filter.size(0).accepts(Arrays.asList("abc", "abc"))); assertFalse(filter.size(1).accepts(Arrays.<String>asList(...
testSize
269,974
void () { final CollectionPattern<String> filter = collection(String.class); assertTrue(filter.empty().accepts(Arrays.<String>asList())); assertFalse(filter.empty().accepts(Arrays.asList("abc"))); assertFalse(filter.empty().accepts(Arrays.asList("abc", "abc"))); assertFalse(not(filter.empty()).accepts(Arrays.<String>as...
testEmpty
269,975
void () { Key<String> key = Key.create("abc"); final ProcessingContext context = new ProcessingContext(); assertFalse(string().contains("abc").save(key).accepts(null)); assertNull(context.get(key)); assertFalse(string().contains("abc").save(key).accepts("def")); assertNull(context.get(key)); final String s = "defabcdef...
testSave
269,976
void () { final int[] counter = new int[1]; final TimeoutCachedValue<Integer> cachedValue = new TimeoutCachedValue<>(50, TimeUnit.MILLISECONDS, () -> { int current = counter[0]++; if (current == 0) { throw new TestProgressCancelException(); } return current; }); assertExceptionThrown(() -> cachedValue.get()); assertEqu...
testExceptionDuringComputingValue
269,977
void (Runnable runnable) { boolean thrown = false; try { runnable.run(); } catch (TestProgressCancelException e) { thrown = true; } assertTrue(thrown); }
assertExceptionThrown
269,978
void () { assumeWindows(); String systemDrive = System.getenv("SystemDrive"); // typically, "C:" assertNotNull(systemDrive); File root = new File(systemDrive + '\\'); CaseSensitivity rootCs = FileSystemUtil.readParentCaseSensitivity(root); assertEquals(systemDrive, CaseSensitivity.INSENSITIVE, rootCs); String systemRoo...
windowsFSRootsMustHaveDefaultSensitivity
269,979
void () { String name = assumeWorkingWslDistribution(); String root = "\\\\wsl$\\" + name; assertEquals(root, CaseSensitivity.SENSITIVE, FileSystemUtil.readParentCaseSensitivity(new File(root))); }
wslRootsMustBeCaseSensitive
269,980
void () { assumeMacOS(); File root = new File("/"); CaseSensitivity rootCs = FileSystemUtil.readParentCaseSensitivity(root); assertNotEquals(CaseSensitivity.UNKNOWN, rootCs); File child = new File("/Users"); assertEquals(root, child.getParentFile()); assertEquals(rootCs, FileSystemUtil.readParentCaseSensitivity(child))...
macOsBasics
269,981
void () { assumeLinux(); File root = new File("/"); CaseSensitivity rootCs = FileSystemUtil.readParentCaseSensitivity(root); assertEquals(CaseSensitivity.SENSITIVE, rootCs); File child = new File("/home"); assertEquals(rootCs, FileSystemUtil.readParentCaseSensitivity(child)); }
linuxBasics
269,982
void () { File file = new File(tempDir.getRoot(), "dir/child.txt"); assertFalse(file.exists()); assertEquals(CaseSensitivity.UNKNOWN, FileSystemUtil.readParentCaseSensitivity(file)); }
caseSensitivityOfNonExistingDirMustBeUnknown
269,983
void () { File file = tempDir.newFile("dir/0"); assertFalse(FileSystemUtil.isCaseToggleable(file.getName())); CaseSensitivity expected = SystemInfo.isWindows || SystemInfo.isMac ? CaseSensitivity.INSENSITIVE : CaseSensitivity.SENSITIVE; assertEquals(expected, FileSystemUtil.readParentCaseSensitivity(file)); }
nativeApiWorksInSimpleCases
269,984
void () { String uni = SystemInfo.isWindows ? getUnicodeName(System.getProperty("sun.jnu.encoding")) : getUnicodeName(); assumeTrue(uni != null); File file = tempDir.newFile(uni + "/0"); CaseSensitivity expected = SystemInfo.isWindows || SystemInfo.isMac ? CaseSensitivity.INSENSITIVE : CaseSensitivity.SENSITIVE; assert...
nativeApiWorksWithNonLatinPaths
269,985
void () { CaseSensitivity defaultCS = SystemInfo.isFileSystemCaseSensitive ? CaseSensitivity.SENSITIVE : CaseSensitivity.INSENSITIVE; assertEquals(defaultCS, FileSystemUtil.readCaseSensitivityByNativeAPI(tempDir.newFile("dir0/child.txt"))); assertEquals(defaultCS, FileSystemUtil.readCaseSensitivityByNativeAPI(tempDir.n...
caseSensitivityNativeWrappersMustWorkAtLeastInSimpleCases
269,986
void () { CaseSensitivity defaultCS = SystemInfo.isFileSystemCaseSensitive ? CaseSensitivity.SENSITIVE : CaseSensitivity.INSENSITIVE; assertEquals(defaultCS, FileSystemUtil.readParentCaseSensitivityByJavaIO(tempDir.newFile("dir0/child.txt"))); assertEquals(defaultCS, FileSystemUtil.readParentCaseSensitivityByJavaIO(tem...
caseSensitivityMustBeDeducibleByPureJavaIOAtLeastInSimpleCases
269,987
Clock (final long nowMs) { return Clock.fixed( Instant.ofEpochMilli(nowMs), ZoneId.systemDefault() ); }
clockPositionedAt
269,988
void () { assertEquals(myCanonicalPath, FileUtil.toCanonicalPath(myTestPath)); PlatformTestUtil.startPerformanceTest("toCanonicalPath", 1_200, () -> { for (int i = 0; i < 1000000; ++i) { final String canonicalPath = FileUtil.toCanonicalPath(myTestPath, '/'); assert canonicalPath.length() == 18 : canonicalPath; } }).ass...
toCanonicalPath
269,989
void () { assertEquals(mySimpleTestPath, FileUtil.toCanonicalPath(mySimpleTestPath)); PlatformTestUtil.startPerformanceTest("toCanonicalPathSimple", 210, () -> { for (int i = 0; i < 1000000; ++i) { final String canonicalPath = FileUtil.toCanonicalPath(mySimpleTestPath, '/'); assert canonicalPath.length() == 8 : canonic...
toCanonicalPathSimple
269,990
void () { assertTrue(FileUtil.isAncestor(myTestPath, myCanonicalPath, false)); PlatformTestUtil.startPerformanceTest("isAncestor", 3000, () -> { for (int i = 0; i < 1000000; ++i) { assert FileUtil.isAncestor(myTestPath, myCanonicalPath, false); assert !FileUtil.isAncestor(myTestPath, myCanonicalPath, true); } }).assert...
isAncestor
269,991
void () { IntList list = new IntArrayList(TrigramBuilder.getTrigrams("String$CharData")); list.sort(null); int expectedTrigramCount = 13; assertEquals(expectedTrigramCount, list.size()); int[] expected = {buildTrigram("$Ch"), buildTrigram("arD"), buildTrigram("ata"), 6514785, 6578548, 6759523, 6840690, 6909543, 7235364...
testBuilder
269,992
void () { IntIterator iterator = TrigramBuilder.getTrigrams("Str").intIterator(); assertTrue(iterator.hasNext()); assertTrue(iterator.hasNext()); assertTrue(iterator.hasNext()); assertEquals(7566450, iterator.nextInt()); assertFalse(iterator.hasNext()); assertFalse(iterator.hasNext()); try { iterator.nextInt(); fail();...
testIteratorContract
269,993
int (String s) { int tc1 = StringUtil.toLowerCase(s.charAt(0)); int tc2 = (tc1 << 8) + StringUtil.toLowerCase(s.charAt(1)); return (tc2 << 8) + StringUtil.toLowerCase(s.charAt(2)); }
buildTrigram
269,994
void () { assertTrue(StringUtil.containsAnyChar(TEST_STRING, Integer.toString(new Random().nextInt()))); PlatformTestUtil.startPerformanceTest("StringUtil.containsAnyChar()", 600, () -> { for (int i = 0; i < 1_000_000; i++) { if (StringUtil.containsAnyChar(TEST_STRING, "XYZ")) { throw new AssertionError(); } if (String...
containsAnyChar
269,995
void () { assertEquals("a", pastParticiple("a")); assertEquals("axed", pastParticiple("ax")); assertEquals("readied", pastParticiple("ready")); assertEquals("REPLAYED", pastParticiple("REPLAY")); assertEquals("stayed", pastParticiple("stay")); assertEquals("TRIED", pastParticiple("TRY")); assertEquals("applied", pastPa...
testSimple
269,996
void () { assertEquals("panicked", pastParticiple("panic")); assertEquals("TRAFFICKED", pastParticiple("TRAFFIC")); assertEquals("frolicked", pastParticiple("frolic")); }
testStrange
269,997
void () { assertEquals("stopped", pastParticiple("stop")); assertEquals("upped", pastParticiple("up")); assertEquals("cancelled", pastParticiple("cancel")); // British English assertEquals("travelled", pastParticiple("travel")); // British English assertEquals("CHATTED", pastParticiple("CHAT")); assertEquals("logged", ...
testDoubled
269,998
void () { assertEquals("played", pastParticiple("play")); assertEquals("fixed", pastParticiple("fix")); assertEquals("swallowed", pastParticiple("swallow")); assertEquals("opened", pastParticiple("open")); assertEquals("battered", pastParticiple("batter")); assertEquals("entered", pastParticiple("enter")); assertEquals...
testNoDoubling
269,999
void () { assertEquals("slept", pastParticiple("sleep")); assertEquals("run", pastParticiple("run")); assertEquals("GOTTEN", pastParticiple("GET")); assertEquals("brought", pastParticiple("bring")); assertEquals("Quit", pastParticiple("Quit")); assertEquals("gone", pastParticiple("go")); assertEquals("swung", pastParti...
testSomeIrregulars