{"size": 617, "ext": "js", "max_stars_repo_path": "unittests/Athena-Entities/scripts/Scene_EntityCreation.js", "max_stars_repo_name": "Kanma/Athena-Entities", "max_stars_repo_stars_event_min_datetime": "2016-10-30T07:34:37.000Z", "max_stars_repo_stars_event_max_datetime": "2016-10-30T07:34:37.000Z", "max_issues_repo_path": "unittests/Athena-Entities/scripts/Scene_EntityCreation.js", "max_issues_repo_name": "Kanma/Athena-Entities", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "unittests/Athena-Entities/scripts/Scene_EntityCreation.js", "max_forks_repo_name": "Kanma/Athena-Entities", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.68, "max_line_length": 56, "alphanum_fraction": 0.7293354943}
scene = new Athena.Entities.Scene('test');

CHECK_EQUAL(0, scene.nbEntities);

entity1 = scene.create("Entity1");

CHECK_EQUAL(1, scene.nbEntities);

entity2 = scene.create("Entity2");

CHECK_EQUAL(2, scene.nbEntities);


CHECK(scene.getEntity(0) !== undefined);
CHECK_EQUAL('Entity1', scene.getEntity(0).name);

CHECK(scene.getEntity('Entity1') !== undefined);
CHECK_EQUAL('Entity1', scene.getEntity('Entity1').name);

CHECK(scene.getEntity(1) !== undefined);
CHECK_EQUAL('Entity2', scene.getEntity(1).name);

CHECK(scene.getEntity('Entity2') !== undefined);
CHECK_EQUAL('Entity2', scene.getEntity('Entity2').name);
