- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSmallLitWidth (0.11 sec)
-
src/compress/lzw/writer_test.go
func TestWriterReturnValues(t *testing.T) { w := NewWriter(io.Discard, LSB, 8) n, err := w.Write([]byte("asdf")) if n != 4 || err != nil { t.Errorf("got %d, %v, want 4, nil", n, err) } } func TestSmallLitWidth(t *testing.T) { w := NewWriter(io.Discard, LSB, 2) if _, err := w.Write([]byte{0x03}); err != nil { t.Fatalf("write a byte < 1<<2: %v", err) } if _, err := w.Write([]byte{0x04}); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 12 11:00:47 UTC 2021 - 5.7K bytes - Viewed (0)