Add tests for the WbWriter class
This class is being used for
- writing wbt, x3d and urdf
- indirectly used when converting to base node
- ?
Moreover, the behavior varies based on the urls involved are relative or absolute/webots/web (or example, soon when streaming the asset urls must be expressed relative to the world). wbt is kinda tested with the nightly world update test, but the rest not really. With the addition of webots.cloud, the risks are even higher since this affects indirectly scenes, animations and streaming.
As such, touching the write functions (or indirectly altering WbUrl) comes at the risk of altering a lot of stuff for which we have almost no test, making the process tedious and more importantly quite risky. Testing everything every time a change is done is not doable considering the large amount of possible combinations of worlds there can be (nodes used, type of urls, ...), but at the very least we should ensure that some basic things aren't altered:
- For every base node we should test we generate a corresponding x3d, wbt & urdf string correctly
- Same thing for every base node with non-default parameters
- Special fields such as urls, should be tested for the different variants (relative, local, absolute, web)
- ?