Any code that works for a 128x64 I2C OLED will work for your 128x32 OLD, with the exception that the display will be garbled.
But the test is useful. If you have a 128x64, write a sketch that displays something on each line (page). Then swap in the 128x32. It should display a garbled mess. If nothing shows, your OLED may be faulty.