Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for expectedResult (0.22 sec)

  1. android/guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      public void testCeilingPowerOfTwo() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInInt(expectedResult)) {
            assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x));
          } else {
            try {
              IntMath.ceilingPowerOfTwo(x);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  2. internal/event/targetlist_test.go

    		if !testCase.expectErr {
    			result := testCase.targetList.List()
    
    			if len(result) != len(testCase.expectedResult) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    			}
    
    			for _, targetID1 := range result {
    				var found bool
    				for _, targetID2 := range testCase.expectedResult {
    					if reflect.DeepEqual(targetID1, targetID2) {
    						found = true
    						break
    					}
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. internal/event/rulesmap_test.go

    		testCase.rulesMap.Add(testCase.rulesMapToAdd)
    
    		if !reflect.DeepEqual(testCase.rulesMap, testCase.expectedResult) {
    			t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, testCase.rulesMap)
    		}
    	}
    }
    
    func TestRulesMapRemove(t *testing.T) {
    	rulesMapCase1 := make(RulesMap)
    	rulesMapToAddCase1 := make(RulesMap)
    	expectedResultCase1 := make(RulesMap)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jan 05 18:43:06 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. internal/auth/credentials_test.go

    	testCases := []struct {
    		accessKey      string
    		expectedResult bool
    	}{
    		{alphaNumericTable[:accessKeyMinLen], true},
    		{alphaNumericTable[:accessKeyMinLen+1], true},
    		{alphaNumericTable[:accessKeyMinLen-1], false},
    	}
    
    	for i, testCase := range testCases {
    		result := IsAccessKeyValid(testCase.accessKey)
    		if result != testCase.expectedResult {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. cmd/object-api-multipart_test.go

    			expectedResult := testCase.expectedResult
    			// Asserting the MaxParts.
    			if actualResult.MaxParts != expectedResult.MaxParts {
    				t.Errorf("Test %d: %s: Expected the MaxParts to be %d, but instead found it to be %d", i+1, instanceType, expectedResult.MaxParts, actualResult.MaxParts)
    			}
    			// Asserting Object Name.
    			if actualResult.Object != expectedResult.Object {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      public void testCeilingPowerOfTwo() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInLong(expectedResult)) {
            assertEquals(expectedResult.longValue(), LongMath.ceilingPowerOfTwo(x));
          } else {
            try {
              LongMath.ceilingPowerOfTwo(x);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      public void testCeilingPowerOfTwo() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInLong(expectedResult)) {
            assertEquals(expectedResult.longValue(), LongMath.ceilingPowerOfTwo(x));
          } else {
            try {
              LongMath.ceilingPowerOfTwo(x);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  8. internal/event/name_test.go

    		result := testCase.name.Expand()
    
    		if !reflect.DeepEqual(result, testCase.expectedResult) {
    			t.Errorf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    		}
    	}
    }
    
    func TestNameString(t *testing.T) {
    	var blankName Name
    
    	testCases := []struct {
    		name           Name
    		expectedResult string
    	}{
    		{BucketCreated, "s3:BucketCreated:*"},
    		{BucketRemoved, "s3:BucketRemoved:*"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/CollectorTester.java

      public final CollectorTester<T, A, R> expectCollects(R expectedResult, T... inputs) {
        List<T> list = Arrays.asList(inputs);
        doExpectCollects(expectedResult, list);
        if (collector.characteristics().contains(Collector.Characteristics.UNORDERED)) {
          Collections.reverse(list);
          doExpectCollects(expectedResult, list);
        }
        return this;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

                ExpectedResult expectedResult = new SelectedProjectsResult(asList(expectedReactorProjects));
                return createTestArguments(expectedResult);
            }
    
            public Arguments expectResult(Class<? extends Exception> expected, final String partOfMessage) {
                ExpectedResult expectedResult = new ExceptionThrown(expected, partOfMessage);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 27.8K bytes
    - Viewed (0)
Back to top