Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 224 for five5 (0.08 sec)

  1. test/fixedbugs/bug366.go

    // Issue 2206.  Incorrect sign extension of div arguments.
    
    package main
    
    func five(x int64) {
    	if x != 5 {
    		panic(x)
    	}
    }
    
    func main() {
           // 5
           five(int64(5 / (5 / 3)))
    
           // 5
           five(int64(byte(5) / (byte(5) / byte(3))))
    
           // 5
           var a, b byte = 5, 3
           five(int64(a / (a / b)))
           
           // integer divide by zero in golang.org sandbox
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 799 bytes
    - Viewed (0)
  2. test/slicecap.go

    		checkString("x[5:]", x[5:])
    		checkString("x[five:]", x[five:])
    		checkString("x[5:five]", x[5:five])
    		checkString("x[five:5]", x[five:5])
    		checkString("x[five:five]", x[five:five])
    		checkString("x[1:][2:][2:]", x[1:][2:][2:])
    		y := x[4:]
    		checkString("y[1:]", y[1:])
    	}
    	{
    		x := bytes
    		checkBytes("x", x)
    		checkBytes("x[5:]", x[5:])
    		checkBytes("x[five:]", x[five:])
    		checkBytes("x[5:five]", x[5:five])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  3. test/const.go

    	assert((&five == interface{}(nil)) == pi(&five, nilN),
    		"for interface{}==*int compiler == runtime")
    	assert((interface{}(nil) == &five) == ip(nilN, &five),
    		"for interface{}==*int compiler == runtime")
    
    	assert((5 == interface{}(5)) == ni(five, five),
    		"for int==interface{} compiler == runtime")
    	assert((interface{}(5) == 5) == in(five, five),
    		"for interface{}==int comipiler == runtime")
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 26 23:54:29 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  4. test/interface/convert.go

    	hello(t.String())
    
    	// T2E
    	e = t
    
    	// E2T
    	t = e.(T)
    	hello(t.String())
    
    	// T2I again
    	sl = t
    	hello(sl.String())
    	five(sl.Length())
    
    	// I2I static
    	s = sl
    	hello(s.String())
    
    	// I2I dynamic
    	sl = s.(StringLengther)
    	hello(sl.String())
    	five(sl.Length())
    
    	// I2E (and E2T)
    	e = s
    	hello(e.(T).String())
    
    	// E2I
    	s = e.(Stringer)
    	hello(s.String())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.9K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/files/fileCollections/kotlin/build.gradle.kts

    import java.nio.file.Paths
    
    // tag::simple-params[]
    val collection: FileCollection = layout.files(
        "src/file1.txt",
        File("src/file2.txt"),
        listOf("src/file3.csv", "src/file4.csv"),
        Paths.get("src", "file5.txt")
    )
    // end::simple-params[]
    
    file("src").mkdirs()
    file("src/dir1").mkdirs()
    file("src/file1.txt").mkdirs()
    file("src2").mkdirs()
    file("src2/dir1").mkdirs()
    file("src2/dir2").mkdirs()
    
    // tag::closure[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/files/fileCollections/tests/fileCollectionsFiltering.out

    src/file1.txt
    src/file2.txt
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 42 bytes
    - Viewed (0)
  7. test/fixedbugs/bug427.go

    // https://golang.org/issue/3351
    
    package main
    
    // struct with four fields of basic type
    type S struct {a, b, c, d int}
    
    // struct with five fields of basic type
    type T struct {a, b, c, d, e int}
    
    // array with four elements
    type A [4]int
    
    // array with five elements
    type B [5]int
    
    func main() {
    	var i interface{}
    
    	var s1, s2 S
    	i = s1 == s2
    
    	var t1, t2 T
    	i = t1 == t2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 614 bytes
    - Viewed (0)
  8. test/fixedbugs/bug273.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // https://golang.org/issue/589
    
    package main
    
    import "unsafe"
    
    var bug = false
    
    var minus1 = -1
    var five = 5
    var big int64 = 10 | 1<<46
    
    type block [1 << 19]byte
    
    var g1 []block
    
    func shouldfail(f func(), desc string) {
    	defer func() { recover() }()
    	f()
    	if !bug {
    		println("BUG")
    		bug = true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 14:06:28 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/files/fileCollections/groovy/build.gradle

    FileCollection collection = layout.files('src/file1.txt',
                                      new File('src/file2.txt'),
                                      ['src/file3.csv', 'src/file4.csv'],
                                      Paths.get('src', 'file5.txt'))
    // end::simple-params[]
    
    file('src').mkdirs()
    file('src/dir1').mkdirs()
    file('src/file1.txt').mkdirs()
    file('src2').mkdirs()
    file('src2/dir1').mkdirs()
    file('src2/dir2').mkdirs()
    
    // tag::closure[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. tests/test_multi_body_errors.py

        response = client.post("/items/", json=[{"age": "five"}, {"age": "six"}])
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
                        "loc": ["body", 0, "name"],
                        "msg": "Field required",
                        "input": {"age": "five"},
                    },
                    {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top