They will eat any leftover food that falls to the bottom of the tank. Also, they eat a lot of things you can't see.
If you have them in a tank by themselves just put in a small amount of flake food or algae wafer every couple of days, and they will be fine.