Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for testbasic (0.17 sec)

  1. tensorflow/cc/experimental/libtf/tests/value_test.cc

    #include <cstdint>
    
    #include "tensorflow/cc/experimental/libtf/value_iostream.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(ValueTest, TestBasic) {
      TaggedValue valuef(3.f);
      TaggedValue valuei(int64_t(3));
      TaggedValue list = TaggedValue::List();
      TaggedValue tuple = TaggedValue::Tuple();
      tuple.tuple().push_back(TaggedValue(int64_t(310)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/internal/coverage/cmerge/merge_test.go

    	}
    	m.ResetModeAndGranularity()
    	err = m.SetModeAndGranularity("mdf1.data", coverage.CtrModeCount, coverage.CtrGranularityPerFunc)
    	if err != nil {
    		t.Fatalf("unexpected clash after reset: %v", err)
    	}
    }
    
    func TestBasic(t *testing.T) {
    	scenarios := []struct {
    		cmode         coverage.CounterMode
    		cgran         coverage.CounterGranularity
    		src, dst, res []uint32
    		iters         int
    		merr          bool
    		overflow      bool
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/encoding/gob/type_test.go

    	typeLock.Lock()
    	defer typeLock.Unlock()
    	t, err := getBaseType(name, rt)
    	if err != nil {
    		panic("getTypeUnlocked: " + err.Error())
    	}
    	return t
    }
    
    // Sanity checks
    func TestBasic(t *testing.T) {
    	for _, tt := range basicTypes {
    		if tt.id.string() != tt.str {
    			t.Errorf("checkType: expected %q got %s", tt.str, tt.id.string())
    		}
    		if tt.id == 0 {
    			t.Errorf("id for %q is zero", tt.str)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. test/map.go

    func P(a []string) string {
    	s := "{"
    	for i := 0; i < len(a); i++ {
    		if i > 0 {
    			s += ","
    		}
    		s += `"` + a[i] + `"`
    	}
    	s += "}"
    	return s
    }
    
    func main() {
    	testbasic()
    	testfloat()
    	testnan()
    }
    
    func testbasic() {
    	// Test a map literal.
    	mlit := map[string]int{"0": 0, "1": 1, "2": 2, "3": 3, "4": 4}
    	for i := 0; i < len(mlit); i++ {
    		s := string([]byte{byte(i) + '0'})
    		if mlit[s] != i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 06 21:02:55 UTC 2014
    - 14.9K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/cache_test.go

    package cache
    
    import (
    	"bytes"
    	"encoding/binary"
    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    )
    
    func init() {
    	verify = false // even if GODEBUG is set
    }
    
    func TestBasic(t *testing.T) {
    	dir, err := os.MkdirTemp("", "cachetest-")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    	_, err = Open(filepath.Join(dir, "notexist"))
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        assertEquals(expectedReportedFpp, actualReportedFpp, 0.00033);
      }
    
      /** Sanity checking with many combinations of false positive rates and expected insertions */
      public void testBasic() {
        for (double fpr = 0.0000001; fpr < 0.1; fpr *= 10) {
          for (int expectedInsertions = 1; expectedInsertions <= 10000; expectedInsertions *= 10) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. src/net/smtp/smtp_test.go

    func (f faker) SetDeadline(time.Time) error      { return nil }
    func (f faker) SetReadDeadline(time.Time) error  { return nil }
    func (f faker) SetWriteDeadline(time.Time) error { return nil }
    
    func TestBasic(t *testing.T) {
    	server := strings.Join(strings.Split(basicServer, "\n"), "\r\n")
    	client := strings.Join(strings.Split(basicClient, "\n"), "\r\n")
    
    	var cmdbuf strings.Builder
    	bcmdbuf := bufio.NewWriter(&cmdbuf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_json_exit.txt

    # Test functions that panic should never be marked as passing
    # (https://golang.org/issue/40132).
    
    ! go test -json ./testpanic
    stdout '"Action":"fail"'
    ! stdout '"Action":"pass"'
    
    ! go tool test2json ./testpanic.exe -test.v
    stdout '"Action":"fail"'
    ! stdout '"Action":"pass"'
    
    ! go tool test2json ./testpanic.exe
    stdout '"Action":"fail"'
    ! stdout '"Action":"pass"'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 19:43:21 UTC 2020
    - 2K bytes
    - Viewed (0)
  9. src/cmd/internal/test2json/testdata/panic.json

    {"Action":"start"}
    {"Action":"output","Test":"TestPanic","Output":"--- FAIL: TestPanic (0.00s)\n"}
    {"Action":"output","Test":"TestPanic","Output":"panic: oops [recovered]\n"}
    {"Action":"output","Test":"TestPanic","Output":"\tpanic: oops\n"}
    {"Action":"output","Test":"TestPanic","Output":"\n"}
    {"Action":"output","Test":"TestPanic","Output":"goroutine 7 [running]:\n"}
    {"Action":"output","Test":"TestPanic","Output":"testing.tRunner.func1(0xc000092100)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/internal/test2json/testdata/panic.test

    --- FAIL: TestPanic (0.00s)
    panic: oops [recovered]
    	panic: oops
    
    goroutine 7 [running]:
    testing.tRunner.func1(0xc000092100)
    	/go/src/testing/testing.go:874 +0x3a3
    panic(0x1110ea0, 0x116aea0)
    	/go/src/runtime/panic.go:679 +0x1b2
    command-line-arguments.TestPanic(0xc000092100)
    	a_test.go:6 +0x39
    testing.tRunner(0xc000092100, 0x114f500)
    	go/src/testing/testing.go:909 +0xc9
    created by testing.(*T).Run
    	go/src/testing/testing.go:960 +0x350
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 30 20:46:44 UTC 2019
    - 479 bytes
    - Viewed (0)
Back to top