#include <bits/stdc++.h>   template <class T>   inline void read(T &x) {     x = 0;     int f = 0;     char ch = getchar();     while (!isdigit(ch)) {       f |= ch ==  - ;       ch = getchar();     }     while (isdigit(ch)) {       x = (x << 1) + (x << 3) + (ch ^ 48);       ch = getchar();     }     x = f ? -x : x;     return;   }   int p[100010], siz[100010], find[100010];   int t, n;   bool flag;   int main() {     read(t);     while (t--) {       read(n);       flag = true;       for (int i = 1; i <= n; ++i) read(p[i]);       for (int i = 2; i <= n; ++i) {         if (p[i] - p[i - 1] > 1) {           flag = false;           break;         }       }       puts(flag ?  Yes  :  No );     }     return 0;   }   