mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-01 06:42:09 +08:00
18 lines
446 B
Go
18 lines
446 B
Go
package screen
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestAlign64(t *testing.T) {
|
|
if ret := cAlign64(0x00010008); ret != 0x00010008 {
|
|
t.Errorf("Wrong alignment, expected %x, got %x", 0x00010008, ret)
|
|
}
|
|
if ret := cAlign64(0x00010006); ret != 0x00010008 {
|
|
t.Errorf("Wrong alignment, expected %x, got %x", 0x00010008, ret)
|
|
}
|
|
if ret := cAlign64(0x00010009); ret != 0x00010010 {
|
|
t.Errorf("Wrong alignment, expected %x, got %x", 0x00010010, ret)
|
|
}
|
|
}
|