For fundamental capstone, I keep failing the exercise 2 testing on exercise 2.3. But my extractBrokerId function pass the test and the updated messages table also looks fine in console.
I am wondering is there anything I missed or there is a bug in the test function?
I’d appreciate any help. Thanks in advance.
FYI. my code for 2.3 is
update broker_id:{extractBrokerId string x}each exch_message from `messages
Does the previous quke test for extractBrokerId Pass?
*Note: A template has been created in FP.Functions if desired. Once defined, run the
corresponding test file (functionName.quke) to test if working correctly*.
When I ran your code above at this same stage with my version of extractBrokerId I got a type error so expect the definitions of extractBrokerId differ - can you share your version so I can better assist? Feel free to send in DM if you prefer
I also wonder if you need to apply string to the exch_message column? If you do for example, if exch_message is symbols then it can be applied without the each.
I think yes string & each is needed since we are using it in qSQL, it won’t take it as what we usually do in function. Also, because of each , it will convert column value into symbol type.