Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 3,314 for nfail (0.15 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add("a", null, "b");
          fail("expected NullPointerException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

          // One more than maximum value
          UnsignedInts.decode("0xfffffffff");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
          UnsignedInts.decode("-5");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
          UnsignedInts.decode("-0x5");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/metaobject/AbstractDynamicObjectTest.java

    import static org.hamcrest.CoreMatchers.equalTo;
    import static org.junit.Assert.assertFalse;
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    public class AbstractDynamicObjectTest {
        private final AbstractDynamicObject object = new AbstractDynamicObject() {
            @Nonnull
            public String getDisplayName() {
                return "<display-name>";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 17 11:25:34 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeyUnsupported() {
        try {
          initMapWithNullKey();
          fail("Creating a map containing a null key should fail");
        } catch (NullPointerException expected) {
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullValueSupported() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. test/chan/select.go

    	if v := Send(a, b); v != 2 {
    		println("Send returned", v, "!= 2")
    		panic("fail")
    	}
    	if av, bv := <-a, <-b; av|bv != 3 {
    		println("bad values", av, bv)
    		panic("fail")
    	}
    	if v := Send(a, nil); v != 1 {
    		println("Send returned", v, "!= 1")
    		panic("fail")
    	}
    	if counter != 10 {
    		println("counter is", counter, "!= 10")
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 913 bytes
    - Viewed (0)
  6. src/crypto/tls/tls.go

    			return fail(errors.New("tls: private key does not match public key"))
    		}
    	case ed25519.PublicKey:
    		priv, ok := cert.PrivateKey.(ed25519.PrivateKey)
    		if !ok {
    			return fail(errors.New("tls: private key type does not match public key type"))
    		}
    		if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) {
    			return fail(errors.New("tls: private key does not match public key"))
    		}
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/internal/pkgpath/pkgpath_test.go

    			os.Setenv(testEnvName, test.env)
    
    			fn, err := ToSymbolFunc(cmd, tmpdir)
    			if err != nil {
    				if !test.fail {
    					t.Errorf("ToSymbolFunc(%q, %q): unexpected error %v", cmd, tmpdir, err)
    				}
    			} else if test.fail {
    				t.Errorf("ToSymbolFunc(%q, %q) succeeded but expected to fail", cmd, tmpdir)
    			} else if got, want := fn(input), test.mangled; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 18:26:59 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  8. pkg/volume/util/fsquota/quota_linux_test.go

    			expectedMountpointCount += testcase.deltaExpectedMountpointCount
    		}
    		fail := false
    		if enabled {
    			fail = runCaseEnabled(t, testcase, seq)
    		} else {
    			fail = runCaseDisabled(t, testcase, seq)
    		}
    
    		compareProjectsFiles(t, testcase, projectsFile, projidFile, enabled)
    		if len(podQuotaMap) != expectedPodQuotaCount {
    			fail = true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_list_bad_import.txt

    # Without -e, listing an otherwise-valid package with an unsatisfied direct import should fail.
    # BUG: Today it succeeds.
    go list -f '{{if .Error}}error{{end}} {{if .Incomplete}}incomplete{{end}} {{range .DepsErrors}}bad dep: {{.Err}}{{end}}' example.com/direct
    ! stdout ^error
    stdout 'incomplete'
    stdout 'bad dep: .*example.com/notfound'
    
    # Listing with -deps should also fail.
    ! go list -deps example.com/direct
    stderr example.com/notfound
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 06 18:54:25 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  10. src/testing/helper_test.go

    	out, _ := cmd.CombinedOutput()
    
    	want := `--- FAIL: TestTBHelper \([^)]+\)
        helperfuncs_test.go:15: 0
        helperfuncs_test.go:47: 1
        helperfuncs_test.go:24: 2
        helperfuncs_test.go:49: 3
        helperfuncs_test.go:56: 4
        --- FAIL: TestTBHelper/sub \([^)]+\)
            helperfuncs_test.go:59: 5
            helperfuncs_test.go:24: 6
            helperfuncs_test.go:58: 7
        --- FAIL: TestTBHelper/sub2 \([^)]+\)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:24:47 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top