1. 03 5月, 2017 1 次提交
    • B
      Fix bug where paths took up twice as much space · ba1c8c65
      Benjamin Sago 提交于
      For some reason, the code that calculated the width of a cell with a path in counted the width of the path twice: once from the ANSIStrings containing it, and once more added on afterwards. This meant that the grid view thought that columns were wider than they really were, meaning fewer could be fit into a grid.
      ba1c8c65
  2. 02 5月, 2017 5 次提交
  3. 01 5月, 2017 12 次提交
  4. 30 4月, 2017 8 次提交
  5. 29 4月, 2017 14 次提交
    • B
      Further tests for printing out directory names · 0c69eeca
      Benjamin Sago 提交于
      ., .., and / always seem to cause problems.
      0c69eeca
    • B
      Special-case the root directory when linking to it · 956aa85b
      Benjamin Sago 提交于
      It’s the only file where its path is the same as its file name, and has been the source of numerous bugs in the past… this special-case isn’t very clean, but it works.
      956aa85b
    • B
      oops · f8b82642
      Benjamin Sago 提交于
      I think I took this off to see how the output was different. Which means there should really be a better way to check how the output is different, other than running the command and looking!
      f8b82642
    • B
      Merge pull request #168 from kballard/dot_filename · 7d6c1eb7
      Benjamin Sago 提交于
      Print . and .. components properly
      7d6c1eb7
    • B
      Tests for the directory path fix · 3d97dffc
      Benjamin Sago 提交于
      3d97dffc
    • B
      Merge pull request #167 from kballard/two_path_components · e671217d
      Benjamin Sago 提交于
      Print paths with 2 components properly
      e671217d
    • B
      Tests for classify and special file types · 456fa287
      Benjamin Sago 提交于
      456fa287
    • B
      Merge pull request #159 from MakeNowJust/feature/classify · c205c359
      Benjamin Sago 提交于
      Implement -F/--classify option
      c205c359
    • B
      Start adding some special file testcases · eacbf555
      Benjamin Sago 提交于
      eacbf555
    • B
      Rename file-types tests to file-names-exts · bd5095d0
      Benjamin Sago 提交于
      This name more accurately reflects which code is being tested (things like .png and Makefile, rather than pipes and sockets), freeing up file-types for *actual* file types to be tested.
      bd5095d0
    • B
      Switch to an Ubuntu Vagrant image · 22be5b04
      Benjamin Sago 提交于
      The non-contrib Debian one doesn’t come with guest additions, meaning it used rsync instead of Virtualbox shared folders to sync files, meaning edits made in the VM didn’t get propogated back to the host, meaning I got very confused for a while.
      
      Thanks to the parent commit, this shouldn’t be an issue at all: the default user name, which is now “ubuntu” instead of “vagrant” is specified in a lot fewer places, making it much easier to change.
      22be5b04
    • B
      Protect xtests against different default users · ef18f9ca
      Benjamin Sago 提交于
      The Vagrant tests assumed that there’d be a user called “vagrant” that would run the tests and create the files by default. Files would be owned by vagrant:vagrant by default, and this worked, until it came time to change that username. The naïve method was a search-and-replace, but this caused problems when the new user’s name wasn’t exactly the same length as the previous one.
      
      So to fix this, we now have our own user, named after the first animal I thought of, that makes the files’ owners and groups independent of the default user of whichever VM image the xtests are running on.
      
      Another place where it was hard-coded was the home directory, which was “/home/vagrant”, where the awkward testcases live. That last one has been changed to just “/testcases”, which has no mention of the user in it.
      ef18f9ca
    • B
      Protect xtests against the passage of time · b885b34a
      Benjamin Sago 提交于
      There was a problem with the Vagrant tests where the year 2016 was hard-coded in as the modified date. This had to be done to make the --long tests use the correct date format, which varies depending on whether the timestamp is in the current year.
      
      Unfortunately, time progresses [citation needed], and what was once 2016 is now 2017, so the date format changed and the tests broke.
      
      Because the Vagrantfile is just a Ruby script, we can look up the current year at runtime and use that instead. There’s also a check added to the test runner that makes sure none of the files are more than 365 days old, because if any are, then it’s time to update the timestamps (or it’s the last day of a leap year)
      b885b34a
    • B
      Versions bump · 2ba4e992
      Benjamin Sago 提交于
      2ba4e992