Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 3,316 for nfail (0.06 sec)

  1. src/cmd/go/testdata/script/test_badtest.txt

    env GO111MODULE=off
    
    ! go test badtest/badexec
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badexec
    
    ! go test badtest/badsyntax
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badsyntax
    
    ! go test badtest/badvar
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badvar
    
    ! go test notest
    ! stdout ^ok
    stderr '^notest.hello.go:6:1: syntax error: non-declaration statement outside function body' # Exercise issue #7108
    
    -- badtest/badexec/x_test.go --
    package badexec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 15:47:54 UTC 2020
    - 805 bytes
    - Viewed (0)
  2. test/fixedbugs/issue15528.go

    )
    
    func main() {
    	var fail bool
    	for i, test := range efaces {
    		s := fmt.Sprintf("%[1]T %[1]v", test.x)
    		if s != test.s {
    			fmt.Printf("eface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    	for i, test := range ifaces {
    		s := fmt.Sprintf("%[1]T %#[1]v %[1]s", test.x)
    		if s != test.s {
    			fmt.Printf("iface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 12 14:31:26 UTC 2016
    - 3.1K bytes
    - Viewed (0)
  3. src/cmd/internal/test2json/testdata/benchfail.test

    --- FAIL: BenchmarkFoo
    	x_test.go:8: My benchmark
    FAIL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 05 22:27:17 UTC 2018
    - 90 bytes
    - Viewed (0)
  4. test/fixedbugs/issue53635.go

    package main
    
    func main() {
    	f[int]()
    }
    
    func f[T any]() {
    	switch []T(nil) {
    	case nil:
    	default:
    		panic("FAIL")
    	}
    
    	switch (func() T)(nil) {
    	case nil:
    	default:
    		panic("FAIL")
    	}
    
    	switch (map[int]T)(nil) {
    	case nil:
    	default:
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 08 12:57:49 UTC 2022
    - 423 bytes
    - Viewed (0)
  5. test/const3.go

    	s := fmt.Sprintf("%v %v %v %v %v", A, B, C, D, E)
    	if s != "T2 T4 T16 T256 T65536" {
    		println("type info didn't propagate in const: got", s)
    		panic("fail")
    	}
    	x := uint(5)
    	y := float64(uint64(1)<<x)	// used to fail to compile
    	if y != 32 {
    		println("wrong y", y)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 659 bytes
    - Viewed (0)
  6. test/ken/sliceslice.go

    			"len=", len(by), "hb-lb=", hb-lb)
    		panic("fail")
    	}
    	if cap(by) != len(bx)-lb {
    		println("t=", t, "lb=", lb, "hb=", hb,
    			"cap=", cap(by), "len(bx)-lb=", len(bx)-lb)
    		panic("fail")
    	}
    	for i := lb; i < hb; i++ {
    		if bx[i] != by[i-lb] {
    			println("t=", t, "lb=", lb, "hb=", hb,
    				"bx[", i, "]=", bx[i],
    				"by[", i-lb, "]=", by[i-lb])
    			panic("fail")
    		}
    	}
    	by = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

          // One more than maximum value
          UnsignedLongs.decode("0xfffffffffffffffff");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
          UnsignedLongs.decode("-5");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
          UnsignedLongs.decode("-0x5");
          fail();
        } catch (NumberFormatException expected) {
        }
    
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:36:17 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/SequentialOutputMatcher.groovy

                    if (expectedLine.contains(actualLine)) {
                        Assert.fail("Missing text at line ${pos + 1}.${NL}Expected: ${expectedLine}${NL}Actual: ${actualLine}${NL}---${NL}Actual output:${NL}$actual${NL}---")
                    }
                    if (actualLine.contains(expectedLine)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LongMathTest.java

          try {
            LongMath.ceilingPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. test/interface/receiver.go

    		println("dynamic i.(P) succeeded incorrectly")
    		panic("fail")
    	}
    
    	//	println("--struct--");
    	var s S
    	s.T = 42
    	s.P()
    	s.V()
    
    	v = s
    	s.V()
    
    	p = &s
    	p.P()
    	p.V()
    
    	v = &s
    	v.V()
    
    	//	p = s	// ERROR
    	var j interface{} = s
    	if _, ok := j.(P); ok {
    		println("dynamic j.(P) succeeded incorrectly")
    		panic("fail")
    	}
    
    	//	println("--struct pointer--");
    	var sp SP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.3K bytes
    - Viewed (0)
Back to top