Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for checkEqual (0.31 sec)

  1. src/testing/quick/quick_test.go

    	reportError("fInt16Alias", CheckEqual(fInt16Alias, fInt16Alias, nil), t)
    	reportError("fInt32", CheckEqual(fInt32, fInt32, nil), t)
    	reportError("fInt32Alias", CheckEqual(fInt32Alias, fInt32Alias, nil), t)
    	reportError("fInt64", CheckEqual(fInt64, fInt64, nil), t)
    	reportError("fInt64Alias", CheckEqual(fInt64Alias, fInt64Alias, nil), t)
    	reportError("fInt8", CheckEqual(fInt8, fInt8, nil), t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  2. src/crypto/subtle/constant_time_test.go

    			t.Errorf("#%d bad result (got %x, want %x)", i, r, test.out)
    		}
    	}
    	err := quick.CheckEqual(ConstantTimeByteEq, byteEq, nil)
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func eq(a, b int32) int {
    	if a == b {
    		return 1
    	}
    	return 0
    }
    
    func TestConstantTimeEq(t *testing.T) {
    	err := quick.CheckEqual(ConstantTimeEq, eq, nil)
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 03:47:57 UTC 2017
    - 2.9K bytes
    - Viewed (0)
  3. src/testing/quick/quick.go

    		}
    	}
    
    	return nil
    }
    
    // CheckEqual looks for an input on which f and g return different results.
    // It calls f and g repeatedly with arbitrary values for each argument.
    // If f and g return different answers, CheckEqual returns a *[CheckEqualError]
    // describing the input and the outputs.
    func CheckEqual(f, g any, config *Config) error {
    	if config == nil {
    		config = &defaultConfig
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  4. src/image/color/color_test.go

    		for _, y := range testCases {
    			if got, want := sqDiff(x, y), orig(x, y); got != want {
    				t.Fatalf("sqDiff(%#x, %#x): got %d, want %d", x, y, got, want)
    			}
    		}
    	}
    	if err := quick.CheckEqual(orig, sqDiff, &quick.Config{MaxCountScale: 10}); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 05:47:09 UTC 2017
    - 890 bytes
    - Viewed (0)
  5. src/go/printer/printer_test.go

    // lineAt returns the line in text starting at offset offs.
    func lineAt(text []byte, offs int) []byte {
    	i := offs
    	for i < len(text) && text[i] != '\n' {
    		i++
    	}
    	return text[offs:i]
    }
    
    // checkEqual compares a and b.
    func checkEqual(aname, bname string, a, b []byte) error {
    	if bytes.Equal(a, b) {
    		return nil
    	}
    	return errors.New(string(diff.Diff(aname, a, bname, b)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. src/sync/map_test.go

    	return applyCalls(new(DeepCopyMap), calls)
    }
    
    func TestMapMatchesRWMutex(t *testing.T) {
    	if err := quick.CheckEqual(applyMap, applyRWMutexMap, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestMapMatchesDeepCopy(t *testing.T) {
    	if err := quick.CheckEqual(applyMap, applyDeepCopyMap, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestConcurrentRange(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/aot/codegen.cc

      TF_RETURN_IF_ERROR(GenArgShapeInfos(ps, &arg_shape_infos));
      TF_RETURN_IF_ERROR(
          CheckEqual(ps.parameters_size(), arg_index_table.size(),
                     "Arg number mismatch, proto vs. arg_index_table"));
      TF_RETURN_IF_ERROR(GenResultShapeInfos(ps, &result_shape_infos));
      TF_RETURN_IF_ERROR(
          CheckEqual(ps.result().tuple_shapes_size(), result_index_table.size(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  8. src/image/draw/draw_test.go

    		for _, y := range testCases {
    			if got, want := sqDiff(x, y), orig(x, y); got != want {
    				t.Fatalf("sqDiff(%#x, %#x): got %d, want %d", x, y, got, want)
    			}
    		}
    	}
    	if err := quick.CheckEqual(orig, sqDiff, &quick.Config{MaxCountScale: 10}); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/metadata/AbstractRepositoryMetadataSource.java

            List<String> errors = new ArrayList<>();
            checkEquals("group", expectedId.getGroup(), actualId.getGroup(), errors);
            checkEquals("module name", expectedId.getModule(), actualId.getName(), errors);
            checkEquals("version", expectedId.getVersion(), actualId.getVersion(), errors);
            if (errors.size() > 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/ForwardingSink;->write(Lokio/Buffer;J)V
    HSPLokio/ForwardingSource;-><init>(Lokio/Source;)V
    HSPLokio/ForwardingSource;->close()V
    HSPLokio/GzipSource;-><init>(Lokio/Source;)V
    HSPLokio/GzipSource;->checkEqual(Ljava/lang/String;II)V
    HSPLokio/GzipSource;->close()V
    HSPLokio/GzipSource;->read(Lokio/Buffer;J)J
    HSPLokio/GzipSource;->updateCrc(Lokio/Buffer;JJ)V
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top