Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for 71828i (0.11 sec)

  1. src/go/types/exprstring_test.go

    package types_test
    
    import (
    	"go/parser"
    	"testing"
    
    	. "go/types"
    )
    
    var testExprs = []testEntry{
    	// basic type literals
    	dup("x"),
    	dup("true"),
    	dup("42"),
    	dup("3.1415"),
    	dup("2.71828i"),
    	dup(`'a'`),
    	dup(`"foo"`),
    	dup("`bar`"),
    	dup("any"),
    
    	// func and composite literals
    	{"func(){}", "(func() literal)"},
    	{"func(x int) complex128 {}", "(func(x int) complex128 literal)"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 17:08:18 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/printer_test.go

    }
    
    func dup(s string) [2]string { return [2]string{s, s} }
    
    var exprTests = [][2]string{
    	// basic type literals
    	dup("x"),
    	dup("true"),
    	dup("42"),
    	dup("3.1415"),
    	dup("2.71828i"),
    	dup(`'a'`),
    	dup(`"foo"`),
    	dup("`bar`"),
    	dup("any"),
    
    	// func and composite literals
    	dup("func() {}"),
    	dup("[]int{}"),
    	{"func(x int) complex128 { return 0 }", "func(x int) complex128 {…}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 17:08:18 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/go/ast/print_test.go

    	"strings"
    	"testing"
    )
    
    var tests = []struct {
    	x any // x is printed as s
    	s string
    }{
    	// basic types
    	{nil, "0  nil"},
    	{true, "0  true"},
    	{42, "0  42"},
    	{3.14, "0  3.14"},
    	{1 + 2.718i, "0  (1+2.718i)"},
    	{"foobar", "0  \"foobar\""},
    
    	// maps
    	{map[Expr]string{}, `0  map[ast.Expr]string (len = 0) {}`},
    	{map[string]int{"a": 1},
    		`0  map[string]int (len = 1) {
    		1  .  "a": 1
    		2  }`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/go/printer/testdata/declarations.input

    	_ = 0xcafebabe
    	_ = 0.
    	_ = .0
    	_ = 3.14159265
    	_ = 1e0
    	_ = 1e+100
    	_ = 1e-100
    	_ = 2.71828e-1000
    	_ = 0i
    	_ = 1i
    	_ = 012345678901234567889i
    	_ = 123456789012345678890i
    	_ = 0.i
    	_ = .0i
    	_ = 3.14159265i
    	_ = 1e0i
    	_ = 1e+100i
    	_ = 1e-100i
    	_ = 2.71828e-1000i
    	_ = 'a'
    	_ = '\000'
    	_ = '\xFF'
    	_ = '\uff16'
    	_ = '\U0000ff16'
    	_ = `foobar`
    	_ = `foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  5. src/go/printer/testdata/declarations.golden

    	_	= 0xcafebabe
    	_	= 0.
    	_	= .0
    	_	= 3.14159265
    	_	= 1e0
    	_	= 1e+100
    	_	= 1e-100
    	_	= 2.71828e-1000
    	_	= 0i
    	_	= 1i
    	_	= 012345678901234567889i
    	_	= 123456789012345678890i
    	_	= 0.i
    	_	= .0i
    	_	= 3.14159265i
    	_	= 1e0i
    	_	= 1e+100i
    	_	= 1e-100i
    	_	= 2.71828e-1000i
    	_	= 'a'
    	_	= '\000'
    	_	= '\xFF'
    	_	= '\uff16'
    	_	= '\U0000ff16'
    	_	= `foobar`
    	_	= `foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

    import org.gradle.internal.jvm.Jvm
    import org.gradle.test.fixtures.ConcurrentTestUtil
    import org.gradle.test.fixtures.Flaky
    
    @Flaky(because = "https://github.com/gradle/gradle/issues/18280")
    class CancellationIntegrationTest extends DaemonIntegrationSpec implements DirectoryBuildCacheFixture {
        private static final String START_UP_MESSAGE = "Cancellable task started!"
        private DaemonClientFixture client
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/scanner_test.go

    	{_Literal, ".0E+12345678901234567890", 0, 0},
    	{_Literal, ".45e1", 0, 0},
    	{_Literal, "3.14159265", 0, 0},
    	{_Literal, "1e0", 0, 0},
    	{_Literal, "1e+100", 0, 0},
    	{_Literal, "1e-100", 0, 0},
    	{_Literal, "2.71828e-1000", 0, 0},
    	{_Literal, "0i", 0, 0},
    	{_Literal, "1i", 0, 0},
    	{_Literal, "012345678901234567889i", 0, 0},
    	{_Literal, "123456789012345678890i", 0, 0},
    	{_Literal, "0.i", 0, 0},
    	{_Literal, ".0i", 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  8. test/method4.dir/prog.go

    	eq(I1.Sum(t2, a, 12), 22)
    
    	f3 := I1.Sum
    	eq(f3(t1, a, 13), 23)
    	eq(f3(t2, a, 14), 24)
    
    	eq(I2.Sum(t1, a, 15), 25)
    	eq(I2.Sum(t2, a, 16), 26)
    
    	f4 := I2.Sum
    	eq(f4(t1, a, 17), 27)
    	eq(f4(t2, a, 18), 28)
    
    	// issue 6723
    	f5 := (interface {
    		I2
    	}).Sum
    	eq(f5(t1, a, 19), 29)
    	eq(f5(t2, a, 20), 30)
    
    	mt1 := method4a.T1(4)
    	mt2 := &method4a.T2{4}
    
    	eq(mt1.Sum(a, 30), 40)
    	eq(mt2.Sum(a, 31), 41)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 07 12:26:48 UTC 2014
    - 1.7K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    integer, even if it starts with a leading <code>0</code>.
    </p>
    
    <pre>
    0i
    0123i         // == 123i for backward-compatibility
    0o123i        // == 0o123 * 1i == 83i
    0xabci        // == 0xabc * 1i == 2748i
    0.i
    2.71828i
    1.e+0i
    6.67428e-11i
    1E6i
    .25i
    .12345E+5i
    0x1p-2i       // == 0x1p-2 * 1i == 0.25i
    </pre>
    
    
    <h3 id="Rune_literals">Rune literals</h3>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. src/compress/lzw/writer_test.go

    			return
    		}
    	}
    }
    
    func TestWriter(t *testing.T) {
    	for _, filename := range filenames {
    		for _, order := range [...]Order{LSB, MSB} {
    			// The test data "2.71828 etcetera" is ASCII text requiring at least 6 bits.
    			for litWidth := 6; litWidth <= 8; litWidth++ {
    				if filename == "../testdata/gettysburg.txt" && litWidth == 6 {
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 11:00:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top