Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for TestHello (3.03 sec)

  1. src/cmd/go/testdata/mod/rsc.io_quote_v1.5.2.txt

    // license that can be found in the LICENSE file.
    
    package quote
    
    import (
    	"os"
    	"testing"
    )
    
    func init() {
    	os.Setenv("LC_ALL", "en")
    }
    
    func TestHello(t *testing.T) {
    	hello := "Hello, world."
    	if out := Hello(); out != hello {
    		t.Errorf("Hello() = %q, want %q", out, hello)
    	}
    }
    
    func TestGlass(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/mod/rsc.io_quote_v0.0.0-20180628003336-dd9747d19b04.txt

    // license that can be found in the LICENSE file.
    
    package quote
    
    import (
    	"os"
    	"testing"
    )
    
    func init() {
    	os.Setenv("LC_ALL", "en")
    }
    
    func TestHello(t *testing.T) {
    	hello := "Hello, world."
    	if out := Hello(); out != hello {
    		t.Errorf("Hello() = %q, want %q", out, hello)
    	}
    }
    
    func TestGlass(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/mod/rsc.io_quote_v0.0.0-20180709162749-b44a0b17b2d1.txt

    // license that can be found in the LICENSE file.
    
    package quote
    
    import (
    	"os"
    	"testing"
    )
    
    func init() {
    	os.Setenv("LC_ALL", "en")
    }
    
    func TestHello(t *testing.T) {
    	hello := "Hello, world."
    	if out := Hello(); out != hello {
    		t.Errorf("Hello() = %q, want %q", out, hello)
    	}
    }
    
    func TestGlass(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/mod/rsc.io_quote_v0.0.0-20180709162816-fe488b867524.txt

    // license that can be found in the LICENSE file.
    
    package quote
    
    import (
    	"os"
    	"testing"
    )
    
    func init() {
    	os.Setenv("LC_ALL", "en")
    }
    
    func TestHello(t *testing.T) {
    	hello := "Hello, world."
    	if out := Hello(); out != hello {
    		t.Errorf("Hello() = %q, want %q", out, hello)
    	}
    }
    
    func TestGlass(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/mod/rsc.io_sampler_v1.99.99.txt

    }{
    	{
    		[]language.Tag{language.Make("en-US"), language.Make("fr")},
    		"Hello, world.",
    	},
    	{
    		[]language.Tag{language.Make("fr"), language.Make("en-US")},
    		"Bonjour le monde.",
    	},
    }
    
    func TestHello(t *testing.T) {
    	for _, tt := range helloTests {
    		text := Hello(tt.prefs...)
    		if text != tt.text {
    			t.Errorf("Hello(%v) = %q, want %q", tt.prefs, text, tt.text)
    		}
    	}
    }
    -- sampler.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/mod/rsc.io_sampler_v1.2.0.txt

    }{
    	{
    		[]language.Tag{language.Make("en-US"), language.Make("fr")},
    		"Hello, world.",
    	},
    	{
    		[]language.Tag{language.Make("fr"), language.Make("en-US")},
    		"Bonjour la monde.",
    	},
    }
    
    func TestHello(t *testing.T) {
    	for _, tt := range helloTests {
    		text := Hello(tt.prefs...)
    		if text != tt.text {
    			t.Errorf("Hello(%v) = %q, want %q", tt.prefs, text, tt.text)
    		}
    	}
    }
    -- sampler.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/mod/rsc.io_sampler_v1.2.1.txt

    }{
    	{
    		[]language.Tag{language.Make("en-US"), language.Make("fr")},
    		"Hello, world.",
    	},
    	{
    		[]language.Tag{language.Make("fr"), language.Make("en-US")},
    		"Bonjour le monde.",
    	},
    }
    
    func TestHello(t *testing.T) {
    	for _, tt := range helloTests {
    		text := Hello(tt.prefs...)
    		if text != tt.text {
    			t.Errorf("Hello(%v) = %q, want %q", tt.prefs, text, tt.text)
    		}
    	}
    }
    -- sampler.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 17:49:01 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/mod/rsc.io_sampler_v1.3.1.txt

    	{
    		[]language.Tag{language.Make("en-US"), language.Make("fr")},
    		"Hello, world.",
    	},
    	{
    		[]language.Tag{language.Make("fr"), language.Make("en-US")},
    		"Bonjour le monde.",
    	},
    }
    
    func TestHello(t *testing.T) {
    	for _, tt := range helloTests {
    		text := Hello(tt.prefs...)
    		if text != tt.text {
    			t.Errorf("Hello(%v) = %q, want %q", tt.prefs, text, tt.text)
    		}
    	}
    }
    -- sampler.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 4.7K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/mod/rsc.io_sampler_v1.3.0.txt

    	{
    		[]language.Tag{language.Make("en-US"), language.Make("fr")},
    		"Hello, world.",
    	},
    	{
    		[]language.Tag{language.Make("fr"), language.Make("en-US")},
    		"Bonjour le monde.",
    	},
    }
    
    func TestHello(t *testing.T) {
    	for _, tt := range helloTests {
    		text := Hello(tt.prefs...)
    		if text != tt.text {
    			t.Errorf("Hello(%v) = %q, want %q", tt.prefs, text, tt.text)
    		}
    	}
    }
    -- sampler.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 10 00:47:06 UTC 2018
    - 4.7K bytes
    - Viewed (0)
  10. src/cmd/pack/pack_test.go

    	expect := goodbyeFile.contents
    	if result != expect {
    		t.Fatalf("expected %q got %q", expect, result)
    	}
    }
    
    // Test that pack-created archives can be understood by the tools.
    func TestHello(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustInternalLink(t, false)
    
    	dir := t.TempDir()
    	hello := filepath.Join(dir, "hello.go")
    	prog := `
    		package main
    		func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 16:27:35 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top