Project

General

Profile

« Previous | Next » 

Revision 0dc989d0

Added by eightbitraptor (Matt V-H) almost 3 years ago

Fix Error in GC Compaction specs

Previously if any of the tests that move objects between size pools
failed to move anything, then the call to stats.dig would return nil
which would then cause assert_operator to error.

This should be a test Failure, rather than an Error so this commit uses
a default value of 0 if stats.dig fails to find a key.

Also refactor object movement tests to use stats.dig, rather than :[]