You will need to do blood tests and urine tests to detect sugar in them. In case it does show presence of sugar then you wil have the diagnosuis. There are other symptoms also that you might feel like excess thirst, hunger and urination.
1 Doctor agrees with this answer