Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for TestMod (0.71 sec)

  1. test/fixedbugs/issue66066.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    func main() {
    	testMod()
    	testMul()
    }
    
    //go:noinline
    func mod3(x uint32) uint64 {
    	return uint64(x % 3)
    }
    
    func testMod() {
    	got := mod3(1<<32 - 1)
    	want := uint64((1<<32 - 1) % 3)
    	if got != want {
    		fmt.Printf("testMod: got %x want %x\n", got, want)
    	}
    
    }
    
    //go:noinline
    func mul3(a uint32) uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 677 bytes
    - Viewed (0)
  2. src/internal/gover/gover_test.go

    	{"1.21.0", Version{"1", "21", "0", "", ""}},
    	{"1.24", Version{"1", "24", "", "", ""}},
    	{"1.24rc3", Version{"1", "24", "", "rc", "3"}},
    	{"1.24.0", Version{"1", "24", "0", "", ""}},
    	{"1.999testmod", Version{"1", "999", "", "testmod", ""}},
    	{"1.99999999999999999", Version{"1", "99999999999999999", "", "", ""}},
    }
    
    func TestLang(t *testing.T) { test1(t, langTests, "Lang", Lang) }
    
    var langTests = []testCase1[string, string]{
    	{"1.2rc3", "1.2"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/coderepo_test.go

    	},
    	{
    		// redirect to static hosting proxy
    		vcs:     "mod",
    		path:    "swtch.com/testmod",
    		rev:     "v1.0.0",
    		version: "v1.0.0",
    		// NO name or short - we intentionally ignore those in the proxy protocol
    		time:  time.Date(1972, 7, 18, 12, 34, 56, 0, time.UTC),
    		gomod: "module \"swtch.com/testmod\"\n",
    	},
    	{
    		// redirect to googlesource
    		vcs:         "git",
    		path:        "golang.org/x/text",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  4. src/cmd/distpack/test.go

    				log.Fatalf("unexpected source archive file: %s (generated by dist)", f.Name)
    			}
    		}
    	}
    }
    
    func testZip(a *Archive) { test("binary", a, zipRules) }
    func testMod(a *Archive) { test("module", a, modRules) }
    
    func test(kind string, a *Archive, rules []testRule) {
    	ok := true
    	have := make([]bool, len(rules))
    	for _, f := range a.Files {
    		for i, r := range rules {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 22:29:19 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (int a : TEST_INTS) {
          for (int b : TEST_INTS) {
            if (b != 0) {
              UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (int a : TEST_INTS) {
          for (int b : TEST_INTS) {
            if (b != 0) {
              UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          try {
            UnsignedLong.fromLongBits(a).dividedBy(UnsignedLong.ZERO);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
            if (b != 0) {
              UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                    import org.junit.Assert;
                    import org.junit.Test;
    
                    public class ModTest {
                        @Test
                        public void testMod() {
                            Divisor divisor = new Divisor();
                            Assert.assertEquals(1, divisor.mod(5, 2));
                        }
                    }
                """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. src/cmd/distpack/pack.go

    		"doc/**",
    		"misc/**",
    		"test/**",
    	)
    	modVers := modVersionPrefix + "-" + version + "." + goosDashGoarch
    	modArch.AddPrefix(modPath + "@" + modVers)
    	modArch.RenameGoMod()
    	modArch.Sort()
    	testMod(modArch)
    
    	// distpack returns the full path to name in the distpack directory.
    	distpack := func(name string) string {
    		return filepath.Join(goroot, "pkg/distpack", name)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. src/crypto/internal/bigmod/nat_test.go

    	for i, tt := range examples {
    		got := (&Nat{tt.in}).expand(tt.n)
    		if len(got.limbs) != len(tt.out) || got.Equal(&Nat{tt.out}) != 1 {
    			t.Errorf("%d: got %v, expected %v", i, got, tt.out)
    		}
    	}
    }
    
    func TestMod(t *testing.T) {
    	m := modulusFromBytes([]byte{0x06, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d})
    	x := natFromBytes([]byte{0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top