Ad
  • Custom User Avatar
  • Custom User Avatar

    ok, so... In that block, you have a lot of tests done on different molecules
    If you just add a log in the constructor, you'll see that the sequence is actually:

    NEW MOLECULE
    
    "brancher call: [1]"
    "mutate call: [[1, 1, "C"]]"
    "closer call:"
    "formula call:"
    
    "brancher call: [1]"
    "mutate call: [[1, 1, "C"]]"
    "add call: [[1, 1, "Br"], [1, 1, "Br"], [1, 1, "Br"], [1, 1, "Br"]]"
    "closer call:"
    "formula call:"
    
    NEW MOLECULE
    
    "brancher call: [1]"
    "mutate call: [[1, 1, "H"]]"
    "closer call:"
    "formula call:"```
    
    ...
    and so on
    
  • Custom User Avatar

    whenever an important method was called

    They are all important => print everything. Other than saying that, I cannot help you since you don't give any precise info. Like:

    • that test must have a specific name (it block) => ? (edit: oops, it's in there. Let's have a closer look)
    • what's the assertion message?
    • maybe the name of the molecule if any? (that could help me to find out what test you're talking about)

    And you don't even say what's your output with that sequence of calls so.... Man, I cannot read your mind! ;)