Results 1 to 2 of 2

Thread: 19154: Add test for items.txt. This is a regex-based test that's designed to be mode

  1. #1
    Feed Reader RSS Bot's Avatar
    Join Date
    Jul 2009
    Posts
    11,822

    RSS 19154: Add test for items.txt. This is a regex-based test that's designed to be mode

    Add test for items.txt.

    This is a regex-based test that's designed to be moderately extensible -- for
    each line that Mafia extracts from the data file, we apply a per-field regex.

    To run this test, just run `ant test`. The build.xml could probably use some
    cleaning up, since I don't really know what I'm doing there.

    In doing so, I fixed a handful of bugs with PirateRealm content -- there were a
    few no-trade, no-discard items that were missing a tab between the use and the
    autosell value.

    by heeheehee on 2019-04-06 01:52:02

    M /build.xml (view) (diff)
    M /default.properties (view) (diff)
    A /lib/testjar (view)
    A /lib/testjar/hamcrest-core-1.3.jar (view)
    A /lib/testjar/junit-4.12.jar (view)
    M /src/data/items.txt (view) (diff)
    Download the latest KolMafia build here.
    Every new revision posted within the hour.
    New EXE builds every Monday.

  2. #2
    Developer
    Join Date
    Aug 2009
    Posts
    2,922

    Default

    Hm, forgot to add the actual test file. Whoops.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •