?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     ;; few more test cases not covered by regular tests,
  2.     ;; but were discovered by code coverage as code not executed in tests
  3.  
  4.     ; some tests need more strict syntax rules to hit specific code paths
  5.     OPT reset --syntax=ab --zxnext
  6.  
  7.     add     hl,[1234        ; "Operand expected" error
  8.  
  9.     brlc    hl,b            ; "only DE,B arguments" error
  10.     bsla    hl,b
  11.     bsra    hl,b
  12.     bsrl    hl,b
  13.     bsrf    hl,b
  14.     nextreg a,$1            ; "first operand should be register number" error
  15.  
  16.     OPT reset --syntax=ab   ; disable Z80N extensions for "Z80N disabled" error
  17.     brlc    de,b
  18.     bsla    de,b
  19.     bsra    de,b
  20.     bsrl    de,b
  21.     bsrf    de,b
  22.     lddrx
  23.     lddx
  24.     ldirx
  25.     ldix
  26.     ldpirx
  27.     ldws
  28.     mul     de
  29.     nextreg $1,$2
  30.     nextreg $3,a
  31.     outinb
  32.     pixelad
  33.     pixelad hl
  34.     pixeldn
  35.     pixeldn hl
  36.     setae
  37.     setae   a
  38.     swapnib
  39.     swapnib a
  40.     test    1
  41.  
  42.     ;; part 3 (new commit, focusing on branching in the code, exercising more combinations and code paths)
  43.     ; these tests (whole this file) are unfortunately very implementation based, in case of major refactorings they may
  44.     ; quickly lose their functionality (the machine code produced should be the same, but code coverage may regress).
  45.  
  46.     add     hl,1234
  47.     add     hl,a
  48.     push    1234
  49.  
  50.     ;; part 4 (more of the branching stuff, handpicked from local detailed coverage report)
  51.  
  52.     OPT reset --syntax=ab --zxnext
  53.     add     de,b
  54.     bsra    de
  55.     bsra    de,a
  56.     brlc    de
  57.     brlc    de,
  58.     brlc    de,a
  59.  
  60.     OPT reset --syntax=abF --zxnext
  61.     mul
  62.     mul     d
  63.     mul     d,c
  64.