mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
add floor() function
This commit is contained in:
22
test/floor
Executable file
22
test/floor
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
. ./Common
|
||||
|
||||
###############################################################################
|
||||
|
||||
fped "floor: 4.7mm" <<EOF
|
||||
%print floor(4.7mm)
|
||||
EOF
|
||||
expect <<EOF
|
||||
4mm
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
fped "floor: -1.2m" <<EOF
|
||||
%print floor(-1.2)
|
||||
EOF
|
||||
expect <<EOF
|
||||
-2
|
||||
EOF
|
||||
|
||||
###############################################################################
|
||||
Reference in New Issue
Block a user