- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 448 for assertequal (0.06 sec)
-
utils/utils_test.go
{"driver.Valuer equal (ptr to nil ptr)", (*ModifyAt)(nil), &ModifyAt{}, false}, } for _, test := range assertEqualTests { t.Run(test.name, func(t *testing.T) { if out := AssertEqual(test.src, test.dst); test.out != out { t.Errorf("AssertEqual(%v, %v) want: %t, got: %t", test.src, test.dst, test.out, out) } }) } } func TestToString(t *testing.T) { tests := []struct { name string
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
tests/prepared_stmt_test.go
tx.First(&result) wg.Done() }() } wg.Wait() conn, ok := tx.ConnPool.(*gorm.PreparedStmtDB) AssertEqual(t, ok, true) AssertEqual(t, len(conn.Stmts), 2) for _, stmt := range conn.Stmts { if stmt == nil { t.Fatalf("stmt cannot bee nil") } } AssertEqual(t, sqlDB.Stats().InUse, 0) } func TestPreparedStmtInTransaction(t *testing.T) { user := User{Name: "jinzhu"}
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:02:05 UTC 2024 - 8.5K bytes - Viewed (0) -
utils/utils.go
} return strings.Join(results, "_") } func Contains(elems []string, elem string) bool { for _, e := range elems { if elem == e { return true } } return false } func AssertEqual(x, y interface{}) bool { if reflect.DeepEqual(x, y) { return true } if x == nil || y == nil { return false } xval := reflect.ValueOf(x) yval := reflect.ValueOf(y)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
assertEquals("", MoreFiles.getFileExtension(root())); assertEquals("", MoreFiles.getFileExtension(FS.getPath("."))); assertEquals("", MoreFiles.getFileExtension(FS.getPath(".."))); assertEquals("", MoreFiles.getFileExtension(FS.getPath("..."))); assertEquals("", MoreFiles.getFileExtension(FS.getPath("blah"))); assertEquals("", MoreFiles.getFileExtension(FS.getPath("blah.")));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 26.5K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractVersionTest.java
assertEquals(1, Integer.signum(v2.compareTo(v1)), "expected " + v2 + " > " + v1); assertNotEquals(v1, v2, "expected " + v1 + " != " + v2); assertNotEquals(v2, v1, "expected " + v2 + " != " + v1); } else { assertEquals(0, v1.compareTo(v2), "expected " + v1 + " == " + v2); assertEquals(0, v2.compareTo(v1), "expected " + v2 + " == " + v1);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java
public void testKeys() { resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k1(), v0())); Multiset<K> keys = multimap().keys(); assertEquals(2, keys.count(k0())); assertEquals(1, keys.count(k1())); assertEquals(3, keys.size()); assertContainsAllOf(keys, k0(), k1()); assertContainsAllOf( keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.2K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t00/ProjectInheritanceTest.java
assertEquals("Codehaus", p4.getOrganization().getName()); // ---------------------------------------------------------------------- // Value taken from super model // ---------------------------------------------------------------------- assertEquals("4.0.0", p4.getModelVersion()); assertEquals("4.0.0", p4.getModelVersion()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.5K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java
assertEquals("4.0.0", ReflectionValueExtractor.evaluate("project.modelVersion", project)); assertEquals("org.apache.maven", ReflectionValueExtractor.evaluate("project.groupId", project)); assertEquals("maven-core", ReflectionValueExtractor.evaluate("project.artifactId", project)); assertEquals("Maven", ReflectionValueExtractor.evaluate("project.name", project));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16.9K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/profiles/manager/DefaultProfileManagerTest.java
profileManager.addProfile(defaultActivated); List active = profileManager.getActiveProfiles(); assertNotNull(active); assertEquals(1, active.size()); assertEquals("defaultActivated", ((Profile) active.get(0)).getId()); } @Test void testShouldNotActivateDefaultProfile() throws Exception { Profile syspropActivated = new Profile();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.3K bytes - Viewed (0) -
compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java
validator.validate(model, problems); assertEquals(0, problems.messages.size()); Repository repo = new Repository(org.apache.maven.api.settings.Repository.newInstance(false)); prof.addRepository(repo); problems = new SimpleProblemCollector(); validator.validate(model, problems); assertEquals(2, problems.messages.size()); repo.setUrl("http://xxx.xxx.com");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.6K bytes - Viewed (0)