Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for p2 (0.17 sec)

  1. guava-tests/test/com/google/common/base/FunctionsTest.java

        Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
        //     assertEquals(p1, p2);
    
        // But for now, settle for this:
        assertEquals(p1.hashCode(), p2.hashCode());
    
        assertEquals(p1.apply(1.0f), p2.apply(1.0f));
        assertEquals(p1.apply(5.0f), p2.apply(5.0f));
      }
    
      public void testForPredicate() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        Predicate<Float> p2 = Predicates.compose(h, Functions.compose(g, f));
    
        // Might be nice (eventually) to have:
        //     assertEquals(p1, p2);
    
        // But for now, settle for this:
        assertEquals(p1.hashCode(), p2.hashCode());
    
        assertEquals(p1.apply(1.0f), p2.apply(1.0f));
        assertEquals(p1.apply(5.0f), p2.apply(5.0f));
      }
    
      public void testForPredicate() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<@Nullable Integer> p2 = isOdd();
    
        // Make sure that hash codes are not computed per-instance.
        assertEqualHashCode(Predicates.not(p1), Predicates.not(p1));
    
        assertEqualHashCode(Predicates.and(p1, p2), Predicates.and(p1, p2));
    
        assertEqualHashCode(Predicates.or(p1, p2), Predicates.or(p1, p2));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  4. tests/hooks_test.go

    	if DB.Save(&Product{Code: "dont_save", Price: 100}).Error == nil {
    		t.Fatalf("An error from after create callbacks happened when create with invalid value")
    	}
    
    	p2 := Product{Code: "update_callback", Price: 100}
    	DB.Save(&p2)
    
    	p2.Code = "dont_update"
    	if DB.Save(&p2).Error == nil {
    		t.Fatalf("An error from before update callbacks happened when update with invalid value")
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            return result;
        }
    
        private static boolean policyEquals(RepositoryPolicy p1, RepositoryPolicy p2) {
            if (p1 == p2) {
                return true;
            }
            // update policy doesn't affect contents
            return p1.isEnabled() == p2.isEnabled() && Objects.equals(p1.getChecksumPolicy(), p2.getChecksumPolicy());
        }
    
        private static boolean repositoryEquals(RemoteRepository r1, RemoteRepository r2) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 16K bytes
    - Viewed (0)
  6. tests/query_test.go

    	}
    
    	p1 := CustomizedTypePrimaryKey{Name: "p1"}
    	p2 := CustomizedTypePrimaryKey{Name: "p2"}
    	p3 := CustomizedTypePrimaryKey{Name: "p3"}
    	DB.Create(&p1)
    	DB.Create(&p2)
    	DB.Create(&p3)
    
    	var p CustomizedTypePrimaryKey
    
    	if err := DB.First(&p, p2.ID).Error; err != nil {
    		t.Errorf("No error should returns, but got %v", err)
    	}
    
    	AssertEqual(t, p, p2)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  7. maven-compat/src/test/resources/inheritance-repo/t00/maven/poms/p3-1.0.pom

    <project>
      <parent>
        <artifactId>p2</artifactId>
        <groupId>maven</groupId>
        <version>1.0</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>maven</groupId>
      <artifactId>p3</artifactId>
      <packaging>pom</packaging>
      <name>p3</name>
      <version>1.0</version>
      <inceptionYear>2000</inceptionYear>
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Oct 26 20:16:00 GMT 2009
    - 335 bytes
    - Viewed (0)
  8. maven-compat/src/test/resources/inheritance-repo/t01/maven.t01/poms/p3-1.0.pom

    <project>
      <parent>
        <artifactId>p2</artifactId>
        <groupId>maven.t01</groupId>
        <version>1.0</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>maven.t01</groupId>
      <artifactId>p3</artifactId>
      <packaging>pom</packaging>
      <name>p3</name>
      <version>1.0</version>
      <organization>
        <name>p3-org</name>
      </organization>
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Oct 26 20:16:00 GMT 2009
    - 365 bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    		case format.has(FormatGNU):
    			hdr.Format = format
    			var p2 parser
    			gnu := tr.blk.toGNU()
    			if b := gnu.accessTime(); b[0] != 0 {
    				hdr.AccessTime = time.Unix(p2.parseNumeric(b), 0)
    			}
    			if b := gnu.changeTime(); b[0] != 0 {
    				hdr.ChangeTime = time.Unix(p2.parseNumeric(b), 0)
    			}
    
    			// Prior to Go1.8, the Writer had a bug where it would output
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. maven-core/src/test/resources/imports-repo/t01/p0/pom.xml

            <artifactId>maven-test-a</artifactId>
            <version>1.0</version>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <modules>
        <module>p1</module>
        <module>p2</module>
        <module>p3</module>
        <module>p4</module>
      </modules>
    XML
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Wed Apr 29 05:20:38 GMT 2009
    - 612 bytes
    - Viewed (0)
Back to top