view test/callback_suite/make-signatures.lua @ 539:0c3f5355769d

- test code: dcmode setting order fix, test worked but was incorrect according to the definition/doc
author Tassilo Philipp
date Sun, 24 Apr 2022 13:48:59 +0200
parents f8856e29b512
children
line wrap: on
line source

require "config"
require "math"
require "string"


function randomSignatures()
  package.path = '../common/?.lua;' .. package.path
  require"rand-sig"
end


function orderedSignatures()
  package.path = '../common/?.lua;' .. package.path
  require"ordered-sig"
end


function designedSignatures()
 for line in io.lines(designfile) do
   io.write( line )
   io.write( "\n" )
 end
end


if mode == "random" then
  randomSignatures()
elseif mode == "ordered" then
  orderedSignatures()
elseif mode == "designed" then
  designedSignatures()
else
  error("'mode' must be 'random', 'ordered' or 'designed'")
end

io.flush()