Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestExpand (0.11 sec)

  1. src/os/env_test.go

    	{"mixed$|bag$$$", "mixed$|bagPID$"},
    	{"$", "$"},
    	{"$}", "$}"},
    	{"${", ""},  // invalid syntax; eat up the characters
    	{"${}", ""}, // invalid syntax; eat up the characters
    }
    
    func TestExpand(t *testing.T) {
    	for _, test := range expandTests {
    		result := Expand(test.in, testGetenv)
    		if result != test.out {
    			t.Errorf("Expand(%q)=%q; expected %q", test.in, result, test.out)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 04 15:31:54 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. src/crypto/internal/bigmod/nat_test.go

    			return false
    		}
    		return got.Equal(natFromBytes(xBytes).ExpandFor(m)) == yes
    	}
    
    	err := quick.Check(f, &quick.Config{})
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func TestExpand(t *testing.T) {
    	sliced := []uint{1, 2, 3, 4}
    	examples := []struct {
    		in  []uint
    		n   int
    		out []uint
    	}{{
    		[]uint{1, 2},
    		4,
    		[]uint{1, 2, 0, 0},
    	}, {
    		sliced[:2],
    		4,
    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