Maths stuff. Nonbranded stuff. accumulators libs/accumulators 1.36.0 Accumulators Eric Niebler Framework for incremental calculation, and collection of statistical accumulators. libs/accumulators/ Math '); $accumulators_details = '{ "key" : "accumulators", "library_path": "libs/accumulators", "name": "Accumulators", "authors": "Eric Niebler", "description": "Framework for incremental calculation, and collection of statistical accumulators.", "documentation": "libs/accumulators/", "category": [ "math" ] }'; $libraries->update('1.36.0', BoostLibrary::read_libraries_json($accumulators_details)); $r = $libraries->get_history('accumulators'); Assert::same(count($r), 1); Assert::same((string) $libraries->latest_version, '1.36.0'); $libraries->update('develop', BoostLibrary::read_libraries_json($accumulators_details)); $r = $libraries->get_history('accumulators'); Assert::same(count($r), 1); $new_accumulators_details = '{ "key": "accumulators", "library_path": "libs/accumulators", "boost-version": "1.36.0", "name": "Accumulators", "authors": "Eric Niebler", "description": "Framework for incremental calculation, and collection of statistical accumulators.", "documentation": "libs/accumulators/", "category": [ "Math", "Generic" ] }'; $libraries->update('develop', BoostLibrary::read_libraries_json($new_accumulators_details)); $r = $libraries->get_history('accumulators'); Assert::same(count($r), 2); Assert::true(isset($r['1.36.0'])); Assert::true(isset($r['develop'])); Assert::same($r['1.36.0']->details['category'], array('math')); Assert::same($r['develop']->details['category'], array('generic', 'math')); Assert::false(isset($r['master'])); $libraries->update('master', BoostLibrary::read_libraries_json($new_accumulators_details)); $r = $libraries->get_history('accumulators'); Assert::same(count($r), 2); Assert::true(isset($r['1.36.0'])); Assert::true(isset($r['master'])); Assert::false(isset($r['develop'])); Assert::same($r['1.36.0']->details['category'], array('math')); Assert::same($r['master']->details['category'], array('generic', 'math')); Assert::false(isset($r['develop'])); $libraries2 = BoostLibraries::from_xml($libraries->to_xml()); $r = $libraries->get_history('accumulators'); Assert::same(count($r), 2); Assert::true(isset($r['1.36.0'])); Assert::true(isset($r['master'])); Assert::false(isset($r['develop'])); Assert::same($r['1.36.0']->details['category'], array('math')); Assert::same($r['master']->details['category'], array('generic', 'math')); Assert::false(isset($r['develop'])); Assert::same((string) $libraries->latest_version, '1.36.0');