Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTermUnion (0.09 sec)

  1. src/cmd/compile/internal/types2/typeterm_test.go

    		}
    		// equal is symmetric
    		x, y = y, x
    		if got := x.equal(y); got != want {
    			t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want)
    		}
    	}
    }
    
    func TestTermUnion(t *testing.T) {
    	for _, test := range []string{
    		"∅ ∅ ∅ ∅",
    		"∅ 𝓤 𝓤 ∅",
    		"∅ int int ∅",
    		"∅ ~int ~int ∅",
    		"∅ myInt myInt ∅",
    		"𝓤 𝓤 𝓤 ∅",
    		"𝓤 int 𝓤 ∅",
    		"𝓤 ~int 𝓤 ∅",
    		"𝓤 myInt 𝓤 ∅",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:30:58 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  2. src/go/types/typeterm_test.go

    		}
    		// equal is symmetric
    		x, y = y, x
    		if got := x.equal(y); got != want {
    			t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want)
    		}
    	}
    }
    
    func TestTermUnion(t *testing.T) {
    	for _, test := range []string{
    		"∅ ∅ ∅ ∅",
    		"∅ 𝓤 𝓤 ∅",
    		"∅ int int ∅",
    		"∅ ~int ~int ∅",
    		"∅ myInt myInt ∅",
    		"𝓤 𝓤 𝓤 ∅",
    		"𝓤 int 𝓤 ∅",
    		"𝓤 ~int 𝓤 ∅",
    		"𝓤 myInt 𝓤 ∅",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top