package main

import "testing"

func TestSendClosedPanics(t *testing.T) {
	c := make(chan int)
	close(c)
	defer func() {
		if recover() == nil {
			t.Fatal("send did not panic")
		}
	}()
	c <- 1
}
func TestMapAssignmentAliases(t *testing.T) {
	a := map[string]int{"x": 1}
	b := a
	b["x"] = 2
	if a["x"] != 2 {
		t.Fatal("map assignment did not share map")
	}
}
