mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-01 17:24:59 +02:00
perl: make test code more simple
This commit is contained in:
parent
9346908485
commit
f2d13cd647
@ -10,12 +10,8 @@ sub import {
|
|||||||
warnings->import;
|
warnings->import;
|
||||||
|
|
||||||
no strict 'refs';
|
no strict 'refs';
|
||||||
*{"$pkg\::true"} = sub () {
|
*{"$pkg\::true"} = \&Data::MessagePack::true;
|
||||||
Data::MessagePack::true()
|
*{"$pkg\::false"} = \&Data::MessagePack::false;
|
||||||
};
|
|
||||||
*{"$pkg\::false"} = sub () {
|
|
||||||
Data::MessagePack::false()
|
|
||||||
};
|
|
||||||
*{"$pkg\::null"} = sub() { undef };
|
*{"$pkg\::null"} = sub() { undef };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user