Closed toqueteos closed 8 years ago
Woops, needs a rebase because we just merged #102 D'oh!
EDIT: Done!
It's funny how this test passes even though the parsing is completely broken (#104). Maybe add another equivalent test for a custom server.properties file?
Rebased with latest master (contains #104).
Force pushed with three tests and a new commit message:
Properties::load/save
using Properties::default
.Properties::load/save
using Properties::default
+ Properties.server_port=25570
(not default value).Properties::load
with unknown properties failing as expected.Ping @fenhl
This is a follow-up PR of https://github.com/PistonDevelopers/hematite_server/pull/102
Changes:
Properties
struct now derivesPartialEq
deriving so we can use theassert_eq!
macro in the tests.Properties::load
now returns anio::Error
if it finds an unknown property./cc @fenhl