Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 505 for runExe (0.33 sec)

  1. src/cmd/cgo/internal/testcshared/cshared_test.go

    	bin := filepath.Join(tmpdir, "m1") + exeSuffix
    	run(t, goenv, "go", "build", "-o", bin, "./go2c2go/m1")
    	runExe(t, runenv, bin)
    
    	bin = filepath.Join(tmpdir, "m2") + exeSuffix
    	run(t, goenv, "go", "build", "-o", bin, "./go2c2go/m2")
    	runExe(t, runenv, bin)
    }
    
    func TestIssue36233(t *testing.T) {
    	globalSkip(t)
    	testenv.MustHaveCGO(t)
    
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  2. test/rune.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test rune constants, expressions and types.
    // Compiles but does not run.
    
    package rune
    
    var (
    	r0 = 'a'
    	r1 = 'a'+1
    	r2 = 1+'a'
    	r3 = 'a'*2
    	r4 = 'a'/2
    	r5 = 'a'<<1
    	r6 = 'b'<<2
    	r7 int32
    
    	r = []rune{r0, r1, r2, r3, r4, r5, r6, r7}
    )
    
    var (
    	f0 = 1.2
    	f1 = 1.2/'a'
    
    	f = []float64{f0, f1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 603 bytes
    - Viewed (0)
  3. src/unicode/letter.go

    				// is odd so we take the low bit from _case.
    				return rune(cr.Lo) + ((r-rune(cr.Lo))&^1 | rune(_case&1)), true
    			}
    			return r + delta, true
    		}
    		if r < rune(cr.Lo) {
    			hi = m
    		} else {
    			lo = m + 1
    		}
    	}
    	return r, false
    }
    
    // To maps the rune to the specified case: [UpperCase], [LowerCase], or [TitleCase].
    func To(_case int, r rune) rune {
    	r, _ = to(_case, r, CaseRanges)
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. src/unicode/example_test.go

    	// 	is graphic rune
    	// 	is number rune
    	// 	is printable rune
    	// For 'Ὂ':
    	// 	is graphic rune
    	// 	is letter rune
    	// 	is printable rune
    	// 	is upper case rune
    	// For 'g':
    	// 	is graphic rune
    	// 	is letter rune
    	// 	is lower case rune
    	// 	is printable rune
    	// For '̀':
    	// 	is graphic rune
    	// 	is mark rune
    	// 	is printable rune
    	// For '9':
    	// 	is digit rune
    	// 	is graphic rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 00:18:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  5. test/string_lit.go

    	s = string(-1)
    	assert(s, "\xef\xbf\xbd", "negative rune")
    
    	// the large rune tests yet again, with a slice.
    	rs := []rune{0x10ffff, 0x10ffff + 1, 0xD800, 0xDFFF, -1}
    	s = string(rs)
    	assert(s, "\xf4\x8f\xbf\xbf\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd", "large rune slice")
    
    	assert(string(gr1), gx1, "global ->[]rune")
    	assert(string(gr2), gx2fix, "global invalid ->[]rune")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 13 01:17:02 UTC 2013
    - 3.6K bytes
    - Viewed (0)
  6. src/unicode/utf16/utf16.go

    	}
    	return replacementChar
    }
    
    // EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.
    // If the rune is not a valid Unicode code point or does not need encoding,
    // EncodeRune returns U+FFFD, U+FFFD.
    func EncodeRune(r rune) (r1, r2 rune) {
    	if r < surrSelf || r > maxRune {
    		return replacementChar, replacementChar
    	}
    	r -= surrSelf
    	return surr1 + (r>>10)&0x3ff, surr2 + r&0x3ff
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        final AtomicInteger numCalls = new AtomicInteger();
    
        Runnable runMe =
            new Runnable() {
              @Override
              public void run() {
                numCalls.incrementAndGet();
                throw new RuntimeException("FAKE EXCEPTION!");
              }
            };
    
        e.execute(runMe);
        e.execute(runMe);
        fakePool.runAll();
    
        assertEquals(2, numCalls.get());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue23814.go

    	_ = myString([]myByte{'\xf0', '\x9f', '\x8c', '\x8d'}) // "🌍
    
    	// 3
    	_ = string([]rune{0x767d, 0x9d6c, 0x7fd4}) // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    	_ = string([]rune{})                       // ""
    	_ = string([]rune(nil))                    // ""
    
    	type runes []rune
    	_ = string(runes{0x767d, 0x9d6c, 0x7fd4}) // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    
    	type myRune rune
    	_ = string([]myRune{0x266b, 0x266c}) // "\u266b\u266c" == "♫♬"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 15 00:06:24 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. src/internal/fuzz/encoding_test.go

    }
    
    func FuzzRuneRoundTrip(f *testing.F) {
    	f.Add(rune(-1))
    	f.Add(rune(0xd800))
    	f.Add(rune(0xdfff))
    	f.Add(rune(unicode.ReplacementChar))
    	f.Add(rune(unicode.MaxASCII))
    	f.Add(rune(unicode.MaxLatin1))
    	f.Add(rune(unicode.MaxRune))
    	f.Add(rune(unicode.MaxRune + 1))
    	f.Add(rune(-0x80000000))
    	f.Add(rune(0x7fffffff))
    
    	f.Fuzz(func(t *testing.T, r1 rune) {
    		b := marshalCorpusFile(r1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. src/unicode/utf16/utf16_test.go

    	}
    }
    
    type decodeTest struct {
    	in  []uint16
    	out []rune
    }
    
    var decodeTests = []decodeTest{
    	{[]uint16{1, 2, 3, 4}, []rune{1, 2, 3, 4}},
    	{[]uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff},
    		[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff}},
    	{[]uint16{0xd800, 'a'}, []rune{0xfffd, 'a'}},
    	{[]uint16{0xdfff}, []rune{0xfffd}},
    }
    
    func TestAllocationsDecode(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top