blob: a0d1bcc8171db63b64e0250205828129d2d80b91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#! /bin/sh
# This script tests: pbmnoise
# Also requires:
echo "Test Invalid"
. ./test-invalid.inc
# Invalid -ratio arguments
invCmd "pbmnoise -ratio 100 100"
invCmd "pbmnoise -ratio 0 1 100"
invCmd "pbmnoise -ratio=1.1 100 100"
invCmd "pbmnoise -ratio=-1 100 100"
invCmd "pbmnoise -ratio=half 100 100"
invCmd "pbmnoise -ratio=0/1/1 100 100"
invCmd "pbmnoise -ratio=-1/2 100 100"
invCmd "pbmnoise -ratio=1/0 100 100"
invCmd "pbmnoise -ratio=/2 100 100"
invCmd "pbmnoise -ratio=4/2 100 100"
invCmd "pbmnoise -ratio=6/ 100 100"
invCmd "pbmnoise -ratio=1.0/2.0 100 100"
# denominator must be power of 2
invCmd "pbmnoise -ratio=3/9 100 100"
invCmd "pbmnoise -ratio=a/2 100 100"
invCmd "pbmnoise -ratio=2/a 100 100"
invCmd "pbmnoise -ratio=1/-2 100 100"
# Denominator must be 65536 or less
invCmd "pbmnoise -ratio=1/65537 100 100"
invCmd "pbmnoise -ratio=1/131072 100 100"
# Other
invCmd "pbmnoise"
invCmd "pbmnoise 100"
invCmd "pbmnoise 100 0"
invCmd "pbmnoise 0 100"
invCmd "pbmnoise 100 200 300"
invCmd "pbmnoise -endian=large 100 100"
invCmd "pbmnoise -randomseed 100 100"
invCmd "pbmnoise -randomseed=-1 100 100"
invCmd "pbmnoise -randomseed=0.1 100 100"
|