- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for testExpr (0.1 sec)
-
test/index.go
if thisPass == pass { // Index operation testExpr(b, pae+"["+cni+"]") // Slice operation. // Low index 0 is a special case in ggen.c // so test both 0 and 1. testExpr(b, pae+"[0:"+cni+"]") testExpr(b, pae+"[1:"+cni+"]") testExpr(b, pae+"["+cni+":]") testExpr(b, pae+"["+cni+":"+cni+"]") } }) fmt.Fprintln(b, "}") b.Flush() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 08 17:28:20 UTC 2019 - 6.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/expr_test.go
{"3<<2+4", 3<<2 + 4, true}, {"3<<2+4", 3<<2 + 4, true}, {"3<<(2+4)", 3 << (2 + 4), true}, // Junk at EOF. {"3 x", 3, false}, // Big number {"4611686018427387904", 4611686018427387904, true}, } func TestExpr(t *testing.T) { p := NewParser(nil, nil, nil) // Expression evaluation uses none of these fields of the parser. for i, test := range exprTests { p.start(lex.Tokenize(test.input)) result := int64(p.expr())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 3.2K bytes - Viewed (0) -
clause/expression_test.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Aug 10 05:34:33 UTC 2023 - 8.4K bytes - Viewed (0) -
src/go/types/exprstring_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. 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"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 17:08:18 UTC 2023 - 2.5K bytes - Viewed (0)