Gimp/plug-ins/script-fu/test/tests/PDB/misc.scm
bootchk 2f360ddb34 ScriptFu: #9755 Add test framework and tests for TS and PDB
Test framework and tests in Scheme, and portable.

Work in progress.  Expect commits for more tests.

Testing framework is stable, more or less.

Add more tests

Add tests layer and layerMask.

test Item methods

More tests, selection

Test memory, vector in TS.

More tests char functions

sharp expr tests
2023-08-25 21:39:29 +00:00

13 lines
No EOL
359 B
Scheme

; Miscellaneous tests of the PDB
; These are not associated with an object class
; 0 is an invalid item id
; FUTURE gimp returns #f instead of 0
; FUTURE gimp doesn't wrap in extra list
(assert '(= (car (gimp-item-id-is-vectors 0)) 0))
; -1 is an invalid item id
; FUTURE: '(not (gimp-item-id-is-valid -1))
(assert '(= (car (gimp-item-id-is-valid -1)) 0))