Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TestInvalid (0.15 sec)

  1. maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

        }
    
        private void assertContains(VersionConstraint c, String... versions) {
            assertContains(String.format("%s: %%s should be contained\n", c.toString()), c, true, versions);
        }
    
        @Test
        void testInvalid() {
            parseInvalid("[1,");
            parseInvalid("[1,2],(3,");
            parseInvalid("[1,2],3");
        }
    
        @Test
        void testSameUpperAndLowerBound() throws VersionParserException {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 21 09:54:32 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      public void testValid() {
        for (String name : VALID_NAME) {
          InternetDomainName unused = InternetDomainName.from(name);
        }
      }
    
      public void testInvalid() {
        for (String name : INVALID_NAME) {
          try {
            InternetDomainName.from(name);
            fail("Should have been invalid: '" + name + "'");
          } catch (IllegalArgumentException expected) {
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 05 13:16:00 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. src/go/parser/short_test.go

    	`package p; func (T) _[ /* ERROR "must have no type parameters" */ A, B C[A, B]](a A) B`,
    
    	`package p; func(*T[e, e /* ERROR "e redeclared" */ ]) _()`,
    }
    
    func TestInvalid(t *testing.T) {
    	for _, src := range invalids {
    		checkErrors(t, src, src, DeclarationErrors|AllErrors, true)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/FileLocationTest.java

                    assertEquals("/share/foo/bar/", fl2.getURLPath());
                }
            }
        }
    
    
        // test case for #30
        @Test ( expected = MalformedURLException.class )
        public void testInvalid () throws MalformedURLException, CIFSException {
            try ( SmbResource p = new SmbFile("smb:a", getContext()) ) {
                p.getType();
            }
        }
    
    
        // #41
        @Test
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
  5. src/internal/reflectlite/all_test.go

    	var v [size]byte
    	z := ToInterface(Zero(ValueOf(v).Type())).([size]byte)
    	for i := 0; i < size; i++ {
    		if z[i] != 0 {
    			t.Fatalf("Zero object not all zero, index %d", i)
    		}
    	}
    }
    
    func TestInvalid(t *testing.T) {
    	// Used to have inconsistency between IsValid() and Kind() != Invalid.
    	type T struct{ v any }
    
    	v := Field(ValueOf(T{}), 0)
    	if v.IsValid() != true || v.Kind() != Interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  6. src/reflect/all_test.go

    	}
    
    	method := rv.Method(0)
    	if method.String() != "<func() Value>" {
    		t.Errorf("ValueOf(Impl{}).Method(0).String() = %q, want %q", method.String(), "<func() Value>")
    	}
    }
    
    func TestInvalid(t *testing.T) {
    	// Used to have inconsistency between IsValid() and Kind() != Invalid.
    	type T struct{ v any }
    
    	v := ValueOf(T{}).Field(0)
    	if v.IsValid() != true || v.Kind() != Interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top