Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Conversation

@proppy
Copy link
Contributor

@proppy proppy commented May 14, 2016

  • remove cast operator
  • remove indexing method
  • accept a subpath

Fixes #133 #109

@proppy proppy added this to the lego-workshop milestone May 14, 2016
@proppy
Copy link
Contributor Author

proppy commented May 14, 2016

I think we should also:

  • implements setInt setFloat etc
  • have a proper copy constructor for FirebaseObject


TEST(FirebaseObjectTest, GetString) {
FirebaseObject obj("\"foo\"");
EXPECT_EQ("foo", obj.getString());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have tests that test a deeper object path like user/name/first or something deeper than one, make sure our path parsing is correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetObject tests /foo/bar below.

Do you mean we should test error when going too deep?

Copy link
Collaborator

@ed7coyne ed7coyne May 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: my mistake you do test it I just missed it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops just realized that you do test "/foo/bar" equals "hop", ignore this.

@ed7coyne
Copy link
Collaborator

LGTM, just a couple of small nits. Feel free to ignore and submit.

@proppy proppy force-pushed the firebase-object branch from 16d0713 to a8d7557 Compare May 15, 2016 00:56
@proppy
Copy link
Contributor Author

proppy commented May 15, 2016

Note: Also updated the room sample to use fooPin instead of pinFoo.

@proppy proppy force-pushed the firebase-object branch from 91167ec to e4898ed Compare May 15, 2016 01:06
@proppy proppy merged commit 7d476b8 into FirebaseExtended:master May 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants